Available question text
Given directed trust relationships among n people, identify the person who is trusted by everyone else but trusts nobody — equivalently, find a node with in-degree n-1 and out-degree 0 in the directed graph, or return -1 if none exists.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 997. Find the Town Judge
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source