Skip to content

Commit c950fa2

Browse files
Binary Search here takes two arguments not 4
1 parent f039b39 commit c950fa2

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy