![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
二叉树 BinaryTree
我家小狗迷路了
这个作者很懒,什么都没留下…
展开
-
[LeetCode] 617. Merge Two Binary Trees
Problem :Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are not.You need to merge them into原创 2017-11-08 13:27:10 · 138 阅读 · 0 评论 -
[LeetCode] 654. Maximum Binary Tree
Problem:Given an integer array with no duplicates. A maximum tree building on this array is defined as follow:The root is the maximum number in the array.The left subtree is the maximum tree原创 2017-11-07 19:00:22 · 142 阅读 · 0 评论 -
[LeetCode] 669.Trim a Binary Search Tree
Problem :Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies in [L, R] (R >= L). You might need to change the root of the原创 2017-11-08 19:51:52 · 161 阅读 · 0 评论 -
[LeetCode] 199. Binary Tree Right Side View
Problem:Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.For example:Given the following binary原创 2017-12-23 13:40:19 · 139 阅读 · 0 评论 -
[LeetCode] 100. Same Tree
Problem:Given two binary trees, write a function to check if they are the same or not.Two binary trees are considered the same if they are structurally identical and the nodes have the same原创 2017-12-16 11:45:29 · 144 阅读 · 0 评论