![](https://img-blog.csdnimg.cn/20190918140129601.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
LinkedList
链表
荷西·H
你不知道这份散发臭味的代码经历了多少次需求变更。
展开
-
leetcode206 Reverse Linked List
描述:链表反转 e.g. input: 1->2->3->4->5->null output:5->4->3->2->1->null # Definition for singly-linked list. # class ListNode: # def __init__(self原创 2019-02-25 23:50:20 · 112 阅读 · 0 评论 -
leetcode328:Odd Even Linked List
自己的丑陋代码 # easy ''' # Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None ''' class Solution(object): L=None def ...原创 2019-02-25 23:53:56 · 127 阅读 · 0 评论 -
leetcode141. Linked List Cycle
这篇说得挺好的 https://blog.csdn.net/liuchonge/article/details/73520414原创 2019-02-20 21:13:51 · 121 阅读 · 0 评论