摘要:
Given a binary tree, you need to compute the length of the diameter of the tree. The diameter of a binary tree is the length of the **longest** path between any two nodes in a tree. This path may or may not pass through the root. 阅读全文
posted @ 2019-04-15 19:01
yjxyy
阅读(222)
评论(0)
推荐(0)
摘要:
Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the original key plus sum of all keys greater than the original key in BST. 阅读全文
posted @ 2019-04-15 18:59
yjxyy
阅读(169)
评论(0)
推荐(0)

浙公网安备 33010602011771号