Problem 1469 · Easy

Find All The Lonely Nodes

A node is lonely when it is the only child of its parent. Find every lonely value in a binary tree.

Open the interactive visualisation