Skip to content

Instantly share code, notes, and snippets.

@akkartik
Created April 19, 2010 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akkartik/371501 to your computer and use it in GitHub Desktop.
Save akkartik/371501 to your computer and use it in GitHub Desktop.
@newacct
Copy link

newacct commented Apr 26, 2011

A = [1]
binary_search(0, len(A), 1) # returns 1, which is not even a valid index

Guess you're not part of the 10%

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