Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b155d89 + a4759dd commit ca0d781Copy full SHA for ca0d781
src/searching/binarysearch.js
@@ -38,7 +38,7 @@
38
}
39
middle = Math.floor((left + right) / 2);
40
41
- return -middle - 1;
+ return -1;
42
43
44
exports.binarySearch = binarySearch;
0 commit comments