摘要: 题目: Given a sorted linked list, delete all duplicates such that each element appear only once. (Easy) For example,Given 1->1->2, return 1->2.Given 1-> 阅读全文
posted @ 2016-10-08 21:16 wangxiaobao1114 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.(Medium) For exampl 阅读全文
posted @ 2016-10-08 21:14 wangxiaobao1114 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 题目: Follow up for "Search in Rotated Sorted Array":What if duplicates are allowed? Would this affect the run-time complexity? How and why? Write a fun 阅读全文
posted @ 2016-10-08 21:10 wangxiaobao1114 阅读(141) 评论(0) 推荐(0) 编辑