abc_begin

导航

上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 20 下一页

2017年10月14日 #

92. Reverse Linked List II【Medium】

摘要: 92. Reverse Linked List II【Medium】 Reverse a linked list from position m to n. Do it in-place and in one-pass. For example:Given 1->2->3->4->5->NULL,  阅读全文

posted @ 2017-10-14 18:49 LastBattle 阅读(183) 评论(0) 推荐(0) 编辑

206. Reverse Linked List【easy】

摘要: 206. Reverse Linked List【easy】 Reverse a singly linked list. Hint: A linked list can be reversed either iteratively or recursively. Could you implemen 阅读全文

posted @ 2017-10-14 17:14 LastBattle 阅读(198) 评论(0) 推荐(0) 编辑

203. Remove Linked List Elements【easy】

摘要: 203. Remove Linked List Elements【easy】 Remove all elements from a linked list of integers that have value val. ExampleGiven: 1 --> 2 --> 6 --> 3 --> 4 阅读全文

posted @ 2017-10-14 16:18 LastBattle 阅读(190) 评论(0) 推荐(0) 编辑

82. Remove Duplicates from Sorted List II【Medium】

摘要: 82. Remove Duplicates from Sorted List II【Medium】 Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numb 阅读全文

posted @ 2017-10-14 15:47 LastBattle 阅读(142) 评论(0) 推荐(0) 编辑

83. Remove Duplicates from Sorted List【easy】

摘要: 83. Remove Duplicates from Sorted List【easy】 Given a sorted linked list, delete all duplicates such that each element appear only once. For example,Gi 阅读全文

posted @ 2017-10-14 13:27 LastBattle 阅读(191) 评论(0) 推荐(0) 编辑

21. Merge Two Sorted Lists【easy】

摘要: 21. Merge Two Sorted Lists【easy】 Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes 阅读全文

posted @ 2017-10-14 13:06 LastBattle 阅读(158) 评论(0) 推荐(0) 编辑

142. Linked List Cycle II【easy】

摘要: 142. Linked List Cycle II【easy】 Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Note: Do not modify th 阅读全文

posted @ 2017-10-14 12:29 LastBattle 阅读(481) 评论(1) 推荐(0) 编辑

141. Linked List Cycle【easy】

摘要: 141. Linked List Cycle【easy】 Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space? 解法一: 经典的快慢指 阅读全文

posted @ 2017-10-14 12:09 LastBattle 阅读(171) 评论(0) 推荐(0) 编辑

237. Delete Node in a Linked List【easy】

摘要: 237. Delete Node in a Linked List【easy】 Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. S 阅读全文

posted @ 2017-10-14 11:57 LastBattle 阅读(123) 评论(0) 推荐(0) 编辑

234. Palindrome Linked List【easy】

摘要: 234. Palindrome Linked List【easy】 Given a singly linked list, determine if it is a palindrome. Follow up:Could you do it in O(n) time and O(1) space? 阅读全文

posted @ 2017-10-14 11:45 LastBattle 阅读(211) 评论(0) 推荐(0) 编辑

上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 20 下一页