You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hint 1
Do a simple tree traversal, try to check if the current node is lonely or not.
Hint 2
Node is lonely if at least one of the left/right pointers is null.