Ezvor

1506. Find Root of N-Ary Tree

MediumHash Table Preparing judge… LeetCode
Hash TableBit ManipulationTreeDepth-First Search

Hints

Hint 1
Node with indegree 0 is the root