Ezvor

1469. Find All The Lonely Nodes

EasyTree Preparing judge… LeetCode
TreeDepth-First SearchBreadth-First SearchBinary Tree

Hints

Hint 1
Do a simple tree traversal, try to check if the current node is lonely or not.