![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
二叉树
文章平均质量分 66
qq_38419968
好好学习,天天向上
展开
-
03-树1 树的同构(25 分)
给定两棵树T1和T2。如果T1可以通过若干次左右孩子互换就变成T2,则我们称两棵树是“同构”的。例如图1给出的两棵树就是同构的,因为我们把其中一棵树的结点A、B、G的左右孩子互换后,就得到另外一棵树。而图2就不是同构的。原创 2017-10-27 19:25:43 · 187 阅读 · 0 评论 -
03-树2 List Leaves(25 分)
03-树2 List Leaves(25 分)Given a tree, you are supposed to list all the leaves in the order of top down, and left to right.原创 2017-10-28 09:48:15 · 401 阅读 · 0 评论