随笔分类 - LeetCode
摘要:Linked List Cycle ii Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Follow up: Can you solve it ...
阅读全文
摘要:Linked List CycleGiven a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space?SOLUTION 1: 依次将链表节点添加入已...
阅读全文
摘要:Partition ListGiven a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.You should ...
阅读全文
摘要:Intersection of Two Linked ListsWrite a program to find the node at which the intersection of two singly linked lists begins.For example, the followin...
阅读全文
摘要:在做了几天题目后,觉得有必要把做题的过程记录下来,除了自己的做法以外,还有从http://www.cnblogs.com/yuzhangcmu/处看到的思路。 感谢http://www.cnblogs.com/yuzhangcmu/
阅读全文
posted @ 2015-02-27 16:51
伪cnblog_com