算法與數據結構--樹的有關習題

1.What is the depth of the tree in the Figure ? Answer:樹的深度=根節點到最遠葉子的距離,最遠:A-B-E-J-L(M),有四條邊,所以樹的深度爲4. 2.Give the prefix, infix, and postfix expressions corresponding to the tree in the figure. Answer
相關文章
相關標籤/搜索