摘要: 1 class Solution: 2 def splitListToParts(self, root: 'ListNode', k: int) -> 'List[ListNode]': 3 N = 0 4 cur = root 5 while cur != None: 6 N += 1 7 ... 阅读全文
posted @ 2019-06-22 09:45 Sempron2800+ 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 交换链表中相邻的两个节点,注意12行的判断条件。 阅读全文
posted @ 2019-06-22 08:36 Sempron2800+ 阅读(132) 评论(0) 推荐(0) 编辑