Optimized scripts
This commit is contained in:
@ -5,4 +5,4 @@ if (arr[mid] > val) return binarySearch(arr, val, start, mid - 1);
|
||||
if (arr[mid] < val) return binarySearch(arr, val, mid + 1, end);
|
||||
return mid;
|
||||
};
|
||||
module.exports = binarySearch;
|
||||
module.exports = binarySearch;
|
||||
Reference in New Issue
Block a user