摘要: 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 ... 阅读全文
posted @ 2015-03-11 23:10 伪cnblog_com 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 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: 依次将链表节点添加入已... 阅读全文
posted @ 2015-03-11 22:41 伪cnblog_com 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 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 ... 阅读全文
posted @ 2015-02-27 23:09 伪cnblog_com 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2015-02-27 17:14 伪cnblog_com 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 在做了几天题目后,觉得有必要把做题的过程记录下来,除了自己的做法以外,还有从http://www.cnblogs.com/yuzhangcmu/处看到的思路。 感谢http://www.cnblogs.com/yuzhangcmu/ 阅读全文
posted @ 2015-02-27 16:51 伪cnblog_com 阅读(116) 评论(0) 推荐(0) 编辑