摘要:
/** * @Name: * @Description: * @Author: Allen */ public class PowerCalculate16 { public static void main(String[] args) { Solution16 solution16= new Solution16(); System.out... 阅读全文
posted @ 2017-12-24 17:20
Allen101
阅读(140)
评论(0)
推荐(0)
摘要:
第一个指针总是指向前面递增数组中的元素,第二个指针总是指向后面递增数组中的元素。最终,第二个指针刚好指向的是最小的元素。 用二分法,时间复杂度:O(logn)。 考虑到足够多的测试用例: {5,6,7,8,9,1,2,3,4} {2} {3,2} {1,2,3,4} {1,1,0,1,1,1,1,1 阅读全文
posted @ 2017-12-24 14:22
Allen101
阅读(158)
评论(0)
推荐(0)

浙公网安备 33010602011771号