← Microsoft questions

The Celebrity Problem

Filed under Microsoft · Also reported at Accenture, Adobe, APT Portfolio, Computer Sciences Corporation (CSC), Ecare Technology Labs, Envestnet Yodlee, Fab.com, Flipkart and 5 more

In a group of N people, a celebrity is someone who is known by everyone else but knows no one. Given a helper function knows(A, B) that returns true if A knows B, find the celebrity or return -1 if…

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

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