摘要: 思路先找出最大值,然后分割进行二分查找; private static int q1_4_20(int[] N, int key) { int l = 0; int r = N.length - 1; int aims = 0; //找最大值 while (l < r) { aims = l + ( 阅读全文
posted @ 2020-04-26 11:58 junlancer 阅读(514) 评论(0) 推荐(0) 编辑