算法与数据结构--树的有关习题

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
相关文章
相关标签/搜索