- 博客(2)
- 收藏
- 关注
原创 Remove Duplicates from Sorted List
Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, return 1->2. Given 1->1->2->3->3, return 1->2->3. 用pre,和now分别指向头节点,和头节点的下
2015-01-31 15:53:33 314
原创 Remove Nth Node From End of List
Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the end, the
2015-01-31 14:56:47 258
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人