News for hackers. Stuff that matters.
Re:Hiring Is Broken: What Do Developers Say About Technical ... by jiveturkey on Thursday August 15, 2019 @08:54PM (#20711204)
What are you getting at? That this is a trick or bad question?

This is on the order of fizzbuzz +1 level maybe. It's elementary stuff.

Or was he looking for best-case optimization or something more than just binary search.

Re:Hiring Is Broken: What Do Developers Say About Technical ... by commandlinefan on Friday August 16, 2019 @01:52PM (#20717663)
It seemed like a bit much to me at the time. It's not something that I've ever had occasion to actually use (I don't search sorted lists much...). I wondered if I would have been able to come up with it if I hadn't already seen it in data structures class years ago - I mean, of course I figured out the "algorithm" when I was a little kid playing "guess the number", but I'll never know if I would have come up with it in that context if I hadn't already seen it. The consensus here seems to be that it's a reasonable question, though - but I do remember that the only people who ever got it were people with CS degrees.