PAT 1127 ZigZagging on a Tree(30分)
2020-05-02
阅读 3 分钟
2.3kSuppose that all the keys in a binary tree are distinct positive integers. A unique binary tree can be determined by a given pair of postorder and inorder traversal sequences. And it is a simple standard routine to print the numbers in level-order. However, if you think the problem is too simple,...