二叉树
know_heng
步步皆题
展开
-
已知二叉树的中序前序遍历,还原树结构+层次遍历
L2-011. 玩转二叉树时间限制400 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者陈越给定一棵二叉树的中序遍历和前序遍历,请你先将树做个镜面反转,再输出反转后的层序遍历的序列。所谓镜面反转,是指将所有非叶结点的左原创 2017-03-22 20:51:45 · 818 阅读 · 0 评论 -
POJ 2255(已知前中序遍历 还原树)
Little Valentine liked playing with binary trees very much. Her favorite game was constructing randomly looking binary trees with capital letters in the nodes. This is an example of one of her creat原创 2017-04-07 10:35:34 · 290 阅读 · 0 评论