摘要:
1123 Is It a Complete AVL Tree (30分) An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any 阅读全文
摘要:
1021 Deepest Root (25 分) A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you 阅读全文
摘要:
1020 Tree Traversals (25 分) Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal seque 阅读全文
摘要:
Pop Sequence (25) Pop Sequence (25) 题目描述 Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, ..., N and pop random 阅读全文
摘要:
Are They Equal (25) 时间限制 1000 ms 内存限制 65536 KB 代码长度限制 100 KB 题目描述 If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 阅读全文
摘要:
Prime Factors 题目描述 Given any positive integer N, you are supposed to find all of its prime factors, and write them in the format N = p1^k1 * p2^k2 *.. 阅读全文