摘要: Given a sorted linked list, delete all duplicates such that each element appears only once. For example,Given 1->1->2, return 1->2.Given 1->1->2->3->3 阅读全文
posted @ 2017-01-08 12:43 lettuan 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo 阅读全文
posted @ 2017-01-08 06:07 lettuan 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Given a set of distinct integers, nums, return all possible subsets. Note: The solution set must not contain duplicate subsets. For example,If nums = 阅读全文
posted @ 2017-01-08 04:48 lettuan 阅读(126) 评论(0) 推荐(0) 编辑