摘要: Author: hozhangel Time: 2018-08-11 20:31:01 206. Reverse Linked List problem description: Reverse a singly linked list. Example: Input: 1->2->3->4->5- 阅读全文
posted @ 2018-08-11 20:19 hozhangel 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 86. Partition List Given 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 s 阅读全文
posted @ 2018-08-11 19:33 hozhangel 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 83. Remove Duplicates from Sorted List (相似题目:82. Remove Duplicates from Sorted List II) Given a sorted linked list, delete all duplicates such that ea 阅读全文
posted @ 2018-08-11 19:11 hozhangel 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 82. Remove Duplicates from Sorted List II Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from 阅读全文
posted @ 2018-08-11 19:05 hozhangel 阅读(141) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/rotate-list/description/ Given a linked list, rotate the list to the right by k places, where k is non-negative. Example 阅读全文
posted @ 2018-08-11 11:05 hozhangel 阅读(104) 评论(0) 推荐(0) 编辑