← Amazon questions
CodingMedium

Find the Celebrity

Filed under Amazon · Also reported at CarWale

In a party of n people, find the celebrity who is known by everyone else but knows nobody. You are given a helper function knows(i, j) which returns true if person i knows person j.

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.