Skip to content

Commit 8fcbad0

Browse files
authored
Merge pull request algorithm-visualizer#214 from voronoipotato/patch-1
Binary Search here takes two arguments not 4
2 parents f039b39 + c950fa2 commit 8fcbad0

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

algorithm/search/binary_search/iterative/code.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ function BinarySearch(array, element) { // array = sorted array, element = eleme
4040
var element = D[Integer.random(0, D.length - 1)];
4141

4242
logger._print('Using iterative binary search to find ' + element);
43-
BinarySearch(D, element, 0, D.length - 1);
43+
BinarySearch(D, element);

0 commit comments

Comments
 (0)