Search⌘ K

Challenge: Find the Celebrity

Explore how to determine if a celebrity exists in a group of people using a matrix that shows their knowledge relationships. Understand the problem constraints, matrix representation, and implement a solution to find the celebrity or confirm none exists.

We'll cover the following...

Statement

In a gathering of NN individuals (labeled from 00 to N1N-1), there’s a possibility of one person being a celebrity. A celebrity is characterized by being known by everyone else and not knowing any attendees. This scenario is represented using an N×NN \times N binary matrixmatrix ...