摘要: https://leetcode.com/problems/linked-list-cycle-ii/Linked List Cycle IIGiven a linked list, return the node where the cycle begins. If there is no cyc... 阅读全文
posted @ 2015-07-01 11:01 小榛子 阅读(110) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/linked-list-cycle/Linked List CycleGiven a linked list, determine if it has a cycle in it.Follow up:Can you solve it wit... 阅读全文
posted @ 2015-07-01 09:48 小榛子 阅读(85) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/swap-nodes-in-pairs/Swap Nodes in PairsGiven a linked list, swap every two adjacent nodes and return its head.For exampl... 阅读全文
posted @ 2015-07-01 09:29 小榛子 阅读(104) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/remove-nth-node-from-end-of-list/Remove Nth Node From End of ListGiven a linked list, remove thenthnode from the end of ... 阅读全文
posted @ 2015-06-30 10:01 小榛子 阅读(122) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/copy-list-with-random-pointer/Copy List with Random PointerA linked list is given such that each node contains an additi... 阅读全文
posted @ 2015-06-29 21:17 小榛子 阅读(103) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/partition-list/Partition ListGiven a linked list and a valuex, partition it such that all nodes less thanxcome before no... 阅读全文
posted @ 2015-06-29 19:26 小榛子 阅读(123) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/reverse-linked-list-ii/Reverse Linked List IIReverse a linked list from positionmton. Do it in-place and in one-pass.For... 阅读全文
posted @ 2015-06-29 12:57 小榛子 阅读(106) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/Remove Duplicates from Sorted List IIGiven a sorted linked list, delete all nodes ... 阅读全文
posted @ 2015-06-29 11:51 小榛子 阅读(100) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/remove-duplicates-from-sorted-list/Remove Duplicates from Sorted ListGiven a sorted linked list, delete all duplicates s... 阅读全文
posted @ 2015-06-29 10:56 小榛子 阅读(152) 评论(0) 推荐(0) 编辑
摘要: https://oj.leetcode.com/problems/rotate-list/Rotate ListGiven a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1... 阅读全文
posted @ 2015-06-29 10:14 小榛子 阅读(166) 评论(0) 推荐(0) 编辑