Find the Celebrity
There are n people labeled from 0 to n - 1. You are given a helper function knows(a, b), which returns True if and only if person a knows person b.
A celebrity is a person who:
- knows...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
