Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    binarySearch doesn't find the value, it finds the index, which would have been valuable, had it worked (sorted array), so your second bullet seems wrong. Commented May 7, 2016 at 7:29
  • 1
    Yay! I've killed 5 answers so far (by down-voting them). Finally an answer I can up-vote (guess because it mostly says the same as my comment?). It tells what is wrong, how to do it better, without giving away the solution. Yay! Commented May 7, 2016 at 7:36
  • @andreas I don't know what I was thinking :/. Bullet deleted Commented May 7, 2016 at 7:44