LibraryInterview questions
Four candidates are interviewed one at a time, in a uniformly random order. After each interview you can compare that candidate against everyone you have already seen and rank them, but you learn nothing about those still to come. You must hire or reject on the spot, and a rejection is final. If you reject the first three, you must hire the fourth.
You win only by hiring the ...
The rest of the question is for members
Ask whether there is ever a reason to hire someone already outdone by an earlier candidate. For each rule that survives, ask where the best candidate overall has to sit for it to succeed.
The only information a candidate carries is whether they are the best so far and where they sit in the queue. That collapses the strategy space to a handful of cutoff rules, which can then simply be compared.
You have the opening of the question, a hint and the idea. It compares every sensible hiring rule, finds the one most likely to pick the top candidate, and gives that chance.
The full question and its solution are part of Thuztra Learn membership, which is a paid subscription. Install the app to read them: