# 创建链表节点类 class NodeList(object): def __init__(self,value,next=None) -> None: self.value = value self.next = next # 构建单向链表 def builtlinklist(nums): if not nums: return None head = NodeList(nums[0]) current = head for i in range(1,len(nums)): cur...