Hiring the best candidate when you cannot go back
You must hire exactly one person from 100 candidates. They arrive in random order and you interview them one at a time. After each interview you can rank that candidate against everyone seen so far, but you know nothing about the ones still to come. You must decide immediately: hire this person (and stop) or reject them (forever).
You only care about hiring the single best candidate; second best is worthless to you.
What strategy maximises the probability of hiring the best candidate, and what is that probability?
Show a hint
Consider strategies of the form "reject the first k candidates no matter what, then hire the first candidate who is better than everyone seen so far". Find the probability of success as a function of k.
Your answer
Solving needs a free account
Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.
Discussion
💡 Discussion rules
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- Interview experiences are welcome. Respect your NDAs.
Loading discussion…
Learn the concepts
The theory behind this question.