摘要: 题目:Search Insert Position通过率:35.3%难度:中等Given a sorted array and a target value, return the index if the target is found. If not, return the index wher... 阅读全文
posted @ 2015-02-12 11:37 pku_smile 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 题目Search in Rotated Sorted ArrayII通过率:31.4%难度:中等Follow up for "Search in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-... 阅读全文
posted @ 2015-02-12 11:30 pku_smile 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 标题:Search in Rotated Sorted Array通过率:28.9%难度:难Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might becom... 阅读全文
posted @ 2015-02-12 11:27 pku_smile 阅读(140) 评论(0) 推荐(0) 编辑