IT公司100题-15-求二元查找树的镜像
摘要:
问题描述:输入一颗二元查找树,将该树转换为它的镜像树,即对每一个节点,互换左右子树。例如输入: 6/ \4 12/ \ / \25 816输出: 6/ \12 4/ \ / \16852定义二元查找树的结点为:typedef struct BSTree { int dat... 阅读全文
posted @ 2014-08-10 21:44 醉清风JM 阅读(215) 评论(0) 推荐(0)
posted @ 2014-08-10 21:44 醉清风JM 阅读(215) 评论(0) 推荐(0)
posted @ 2014-08-10 19:51 醉清风JM 阅读(207) 评论(0) 推荐(0)