A1043 Is It a Binary Search Tree (25 分)
摘要:A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nodes
阅读全文
posted @
2019-02-14 15:30
Aldrich_2020
阅读(257)
推荐(0)
A1020 Tree Traversals (25 分)
摘要:Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to ou
阅读全文
posted @
2019-02-12 11:19
Aldrich_2020
阅读(162)
推荐(0)