366. Find Leaves of Binary Tree

2016-12-06  本文已影响0人  我是你的果果呀

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好烦,大神用高度相等的办法递归

上一篇 下一篇

猜你喜欢

热点阅读