Given a binary tree, collect a tree's nodes as if you were doing this: Collect and remove all leaves, repeat until the tree is empty.
DFS好煩彻亲,大神用高度相等的辦法遞歸
Given a binary tree, collect a tree's nodes as if you were doing this: Collect and remove all leaves, repeat until the tree is empty.
DFS好煩彻亲,大神用高度相等的辦法遞歸