USACO算法系列二十——heritage

来源:互联网 发布:stc下载软件 编辑:程序博客网 时间:2024/05/22 01:46

    题目:http://www.nocow.cn/index.php/Translate:USACO/heritage

    很简单,知道前序,中序排列,求二叉树的后序排列。递归一下轻松搞定。

 

      运行结果:

 

原创粉丝点击