摘要: 简单题 执行用时 :176 ms, 在所有 python 提交中击败了53.69%的用户 内存消耗 :12.2 MB, 在所有 python 提交中击败了24.70%的用户 ——2019.10.25 阅读全文
posted @ 2019-10-25 11:50 欣姐姐 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 简单题 执行用时 :16 ms, 在所有 python 提交中击败了98.07%的用户 内存消耗 :11.8 MB, 在所有 python 提交中击败了25.81%的用户 ——2019.10.25 阅读全文
posted @ 2019-10-25 11:41 欣姐姐 阅读(129) 评论(0) 推荐(0) 编辑
摘要: class Solution(object): def rotateRight(self, head, k): """ :type head: ListNode :type k: int :rtype: ListNode """ if not head: return if head.next==N 阅读全文
posted @ 2019-10-25 10:28 欣姐姐 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 借助新增加的结点 class Solution(object): def swapPairs(self, head): """ :type head: ListNode :rtype: ListNode """ if not head: return if head.next==None: retu 阅读全文
posted @ 2019-10-25 10:04 欣姐姐 阅读(155) 评论(0) 推荐(0) 编辑