At a party, a celebrity is known by everyone but knows no one. Using only 'does a know b?' questions, find the celebrity or report there is none.
At a party, a celebrity is known by everyone but knows no one. Using only 'does a know b?' questions, find the celebrity or report there is none.
Unlock the full question, the code runner with test cases, and reference solution
One-time unlock. Yours forever.
Or get a for every question, unlimited code runs and AI mock interviews.
Opens with the full question.