题目描述:求二叉树的深度。 i c } m l p a o s r s f } t u F n F o c o r i } r u 3 t f e n 9 r t d S e r u a o e o r r t l D o e n i u e t t o t p u m n i t = r a o h = n x n ( ( _ n 0 t { i r r l e o e o { D t e : p t T h r ( e r e o N o o t d ? e . ? l ) e f t ) , I n t t r e { e D e p t h ( r o o t ? . r i g h t ) ) + 1 算法思想:递归求,每次+1,利用栈的特性。 github地址:https://github.com/cubegao/LeetCode