Hacker News new | ask | show | jobs
by rootlocus 3496 days ago
He mentions he was asked to write the answer during an interview, so it's possible the problem was underspecified intentionally to test how the candidate explores the input space.