Binary search should return index #13

jgross206 opened this Issue Aug 23, 2012 · 0 comments


None yet
1 participant

It would be great if the binary search method return the index of the object in the array instead of the object itself. The index gives you more information (where it is instead of just whether or not it exists) and it's free-- you already have it when returning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment