tree
bwcxljsm
这个作者很懒,什么都没留下…
展开
-
897——Increasing Order SearchTree
题目 Given a tree, rearrange the tree in in-order so that the leftmost node in the tree is now the root of the tree, and every node has no left child and only 1 right child. 大意 给出一个树,重新排列,使得最左的节点是树的根...原创 2018-12-19 20:40:59 · 194 阅读 · 0 评论 -
543Diameter of Binary Tree
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 n...原创 2019-01-19 14:50:09 · 158 阅读 · 0 评论