pull/14/head
Tay Yang Shun 7 years ago
parent 4fa28c04ee
commit 0f78cf3657

@ -2,7 +2,7 @@ function binarySearch(arr, target) {
let left = 0;
let right = arr.length - 1;
while (left <= right) {
let mid = left + Math.floor((right - left) / 2);
const mid = left + Math.floor((right - left) / 2);
if (arr[mid] === target) {
return mid;
}

Loading…
Cancel
Save