摘要: public static int bsearch(int[] a, int n, int value) {//a是查找目标数组,n是数组长度,value是查找的值 int low = 0; int high = n - 1; while (low <= high) { int mid = (low + high) / 2; ... 阅读全文
posted @ 2019-07-03 16:59 宇枫 阅读(888) 评论(0) 推荐(0) 编辑