摘要: 普通二分查找 public static int search(int[] arr, int target) { int l = 0; int r = arr.length; while (l < r) { int mid = l + ((r - l) >> 1); if (arr[mid] < t 阅读全文
posted @ 2021-08-02 09:31 rudynan 阅读(37) 评论(0) 推荐(0)