Loading

摘要: 节点类: 1 class ListNode(object): 2 def __init__(self, x): 3 self.val = x 4 slef.next = None 反转单向链表的函数如下: 1 def reverseList(head): 2 pre = None 3 while h 阅读全文
posted @ 2021-04-13 18:04 DuKe渡客 阅读(206) 评论(0) 推荐(0) 编辑