摘要: 1 # -*- coding:utf-8 -*- 2 # class ListNode: 3 # def __init__(self, x): 4 # self.val = x 5 # self.next = None 6 class Solution: 7 def EntryNodeOfLoop( 阅读全文
posted @ 2019-05-07 21:37 Parallax 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 1 # -*- coding:utf-8 -*- 2 # class ListNode: 3 # def __init__(self, x): 4 # self.val = x 5 # self.next = None 6 """首先判断长度,然后移动指针将两个链表尾部对齐,当两链表的头指针相等时, 阅读全文
posted @ 2019-05-07 19:57 Parallax 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 1 # -*- coding:utf-8 -*- 2 # class ListNode: 3 # def __init__(self, x): 4 # self.val = x 5 # self.next = None 6 class Solution: 7 # 返回合并后列表 8 def Merg 阅读全文
posted @ 2019-05-07 05:09 Parallax 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 1 # -*- coding:utf-8 -*- 2 # class ListNode: 3 # def __init__(self, x): 4 # self.val = x 5 # self.next = None 6 """pHead指针通过其.next属性将原链表上next_指针前移,pre 阅读全文
posted @ 2019-05-07 02:35 Parallax 阅读(80) 评论(0) 推荐(0) 编辑