posted 13 years ago
Hello Sebanti,
I input your code like so:
This output gives: pen marble map key -1
2
Why is the output for new code 2?
Also when I put "marble" as the key in the binary search I receive positive integer, 1, as a result. When I put "map" or "key" in I receive the -1 output that still does not make any sense to me. I found that "pen" yields -5 as output...I am not sure if these results are consistent with each run though.
Thanks for the input though - crowd-source your problems,
Ted North