摘要:
Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space for a... 阅读全文
posted @ 2016-01-26 23:36 cKK 阅读(98) 评论(0) 推荐(0) 编辑
|
||
摘要:
Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space for a... 阅读全文
posted @ 2016-01-26 23:36 cKK 阅读(98) 评论(0) 推荐(0) 编辑
摘要:
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists./** * Def... 阅读全文
posted @ 2016-01-26 22:11 cKK 阅读(183) 评论(0) 推荐(0) 编辑
摘要:
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 ... 阅读全文
posted @ 2016-01-26 20:47 cKK 阅读(155) 评论(0) 推荐(0) 编辑 |
||