摘要: 题目: 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 i 阅读全文
posted @ 2016-08-23 20:47 wangxiaobao1114 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a sorted array of integers, find the starting and ending position of a given target value. Your algorithm's runtime complexity must be in th 阅读全文
posted @ 2016-08-23 20:43 wangxiaobao1114 阅读(161) 评论(0) 推荐(0) 编辑