摘要: DescriptionGiven a big sorted array with positive integers sorted by ascending order. The array is so big so that you can not get the length of the wh 阅读全文
posted @ 2017-04-24 08:50 panini 阅读(457) 评论(1) 推荐(0) 编辑
摘要: 4/23/2017 算法班 注意返回的是值,而不是index 阅读全文
posted @ 2017-04-24 08:40 panini 阅读(461) 评论(0) 推荐(0) 编辑
摘要: Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted f 阅读全文
posted @ 2017-04-24 08:27 panini 阅读(173) 评论(0) 推荐(0) 编辑
摘要: DescriptionGiven a target number and an integer array A sorted in ascending order, find the index i in A such that A[i] is closest to the given target 阅读全文
posted @ 2017-04-24 08:11 panini 阅读(533) 评论(0) 推荐(0) 编辑