有序数组中小于某个数的个数
在一个有序的数组中,查找小于某个数的个数[1, 2, 3, 4]2// 1二分查找let searchInsert = function (arr, x) { let left = 0; let right = arr.length - 1; while (left <= right) { let mid = (left + right) >> ...