You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Branch and Bound/Binary Search/recursive.js
+7-7
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ tracer.set(D).delay();
8
8
9
9
functionBinarySearch(array,element,minIndex,maxIndex){// array = sorted array, element = element to be found, minIndex = low index, maxIndex = high index
10
10
if(minIndex>maxIndex){
11
-
logger.print(`${element} is not found!`);
11
+
logger.println(`${element} is not found!`);
12
12
return-1;
13
13
}
14
14
@@ -17,31 +17,31 @@ function BinarySearch(array, element, minIndex, maxIndex) { // array = sorted ar
17
17
18
18
tracer.select(minIndex,maxIndex).delay();
19
19
tracer.patch(middleIndex);
20
-
logger.print(`Searching at index: ${middleIndex}`).delay();
20
+
logger.println(`Searching at index: ${middleIndex}`).delay();
0 commit comments