Write a binary search.
Anonymous
Yes, although seems a bit ridiculous considering I'm not fresh out of school (8 years out now), and never once have I had to write any type of algorithm like this from scratch.
Check out your Company Bowl for anonymous work chats.