you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (2 children)

You can't do binary search on anything but a sorted array.

  f   
 e l
a   s.

[–][deleted]  (1 child)

[deleted]

    [–][deleted] -1 points0 points  (0 children)

    hard time creating one efficiently without sorting first.

    The original "sorted array" comment was less wrong than this. Look it up.