Skip to content

Commit 2421d79

Browse files
committed
minor
1 parent f665f9e commit 2421d79

File tree

1 file changed

+1
-1
lines changed
  • algorithm/search/binary_search/recursive

1 file changed

+1
-1
lines changed

algorithm/search/binary_search/recursive/code.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function BinarySearch(array, element, minIndex, maxIndex) { // array = sorted array, element = element to be found, minIndex = minIndex index, maxIndex = maxIndex index
1+
function BinarySearch(array, element, minIndex, maxIndex) { // array = sorted array, element = element to be found, minIndex = low index, maxIndex = high index
22
if (minIndex > maxIndex) {
33
tracer._print(element + ' is not found!');
44
return -1;

0 commit comments

Comments
 (0)