二叉树遍历输出

按先序遍历序列创建一个二叉树的二叉链表,并按先序遍历、中序遍历、后序遍历将其输出。 测试用例1node -+a##*b##c##/d##e##↵ 期待输出1ios 前序遍历结果:- + a * b c / d e ↵ 中序遍历结果:a + b * c - d / e ↵ 后序遍历结果:a b c * + d e / - ↵ #include <iostream> #include <list> #
相关文章
相关标签/搜索