← Flipkart questions

Find Celebrity

Filed under Flipkart

Given $N$ people labeled from $0$ to $N-1$ and a helper function `knows(a, b)` which returns true if person `a` knows person `b`, find the celebrity if they exist. A celebrity is someone who knows…

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 Flipkart questions

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