← Amazon questions

The Celebrity Problem with Twist

Filed under Amazon

In a party of N people, find if there is a celebrity. A celebrity is someone who does not know anyone else, but everyone else knows them. Minimize comparisons using a stack or pointer approach.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.