We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
That won't make a difference because this will never be true: Integer == false. If a value is not found in the binary search, it will come back as nil. I also tried searching from right to left, and the same cases are failing. I wonder if my binary search algorithm is what's failing? It's really frustrating not to have access to the test cases. It's rediculous, in fact. Under what circumstances will anyone be debugning without access to the data?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Ice Cream Parlor
You are viewing a single comment's thread. Return to all comments →
That won't make a difference because this will never be true:
Integer == false
. If a value is not found in the binary search, it will come back asnil
. I also tried searching from right to left, and the same cases are failing. I wonder if my binary search algorithm is what's failing? It's really frustrating not to have access to the test cases. It's rediculous, in fact. Under what circumstances will anyone be debugning without access to the data?