摘要: 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 阅读全文
posted @ 2018-04-06 01:25 Dyleaf 阅读(149) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2018-04-06 01:20 Dyleaf 阅读(170) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2018-04-06 01:04 Dyleaf 阅读(226) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2018-04-06 01:01 Dyleaf 阅读(129) 评论(0) 推荐(0)