边界的二分搜索算法
摘要:用例:在递增数组arr中寻找大于等于target的最小元素索引 思路:利用双指针,采用二分法查找左边界 代码: public static int left_bound(int[] arr, int target){ if (arr.length == 0) return -1; int left
阅读全文
posted @ 2022-01-17 11:07
read the fucking source code
posted @ 2022-01-17 11:07
楼主下次如果能录个视频,顺便分享一下用到的工具就更好了
这次很快
感谢感谢