Problem 366 · Medium

Find Leaves of Binary Tree

Remove leaves level by level and return leaf values at each iteration.

Open the interactive visualisation