Back to Question

Find the Town Judge

Question Explain

In a town of $N$ people, the Judge is someone who trusts nobody and is trusted by everybody else. Find the label of the Judge in $O(N)$ time.

Start Trying This Question Simulation

Click "Start Speaking" and answer the question naturally.