摘要: For a given sorted array (ascending order) and a target number, find the first index of this number in O(log n) time complexity.If the target number d... 阅读全文
posted @ 2015-09-03 06:46 Hygeia 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Given a rotated sorted array, recover it to sorted array in-place.Have you met this question in a real interview?YesWhich company asked you this quest... 阅读全文
posted @ 2015-09-03 06:15 Hygeia 阅读(155) 评论(0) 推荐(0) 编辑
摘要: Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or... 阅读全文
posted @ 2015-09-03 05:30 Hygeia 阅读(185) 评论(0) 推荐(0) 编辑