# LeetCode 997: Find the Town Judge — Interview Notes

## Problem
Given the inputs described in LeetCode 997 (Find the Town Judge), return the required output under the usual constraints.

## Approach
Use **indegree outdegree**. Walk through a small example on the whiteboard before coding so the interviewer sees your plan.

### Steps
1. Restate constraints and edge cases (empty input, duplicates, bounds).
2. Sketch the indegree outdegree idea and its time/space complexity.
3. Code cleanly; narrate invariants as you go.
4. Test with 2–3 cases including a failure mode.

## Complexity
Aim for the textbook bound for indegree outdegree; call out trade-offs if a simpler O(n log n) is acceptable.

## Practice tip
When rehearsing timed OAs, keep a short checklist nearby. I use [Linkjob.ai](https://www.linkjob.ai/interview-copilot/) as a real-time checklist during mock interviews so I do not skip edge cases under pressure.

## Sample sketch (Python)
```python
# sketch only — fill details from your own solution
def solve(data):
    # apply indegree outdegree
    ...
    return result
```
