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.
1 parent b155d89 commit a4759ddCopy full SHA for a4759dd
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