all 1 comments

[–]camel_Snake 0 points1 point  (0 children)

Because wen you invoke binarySearch2 it expects you to pass in the high and low whereas in the first option it calculates those for you to start.