摘要:
1066. Root of AVL Tree (25) An AVL tree is a self balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node diff 阅读全文
摘要:
1064. Complete Binary Search Tree (30) A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left 阅读全文
摘要:
1053. Path of Equal Weight (30) Given a non empty tree with root R, and with weight Wi assigned to each tree node Ti. The weight of a path from R to L 阅读全文
摘要:
1004. Counting Leaves (30) A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. In 阅读全文