889. Construct Binary Tree from Preorder and Postorder Traversal

2019-01-07
阅读 2 分钟
1.4k
Return any binary tree that matches the given preorder and postorder traversals.

leetcode讲解--513. Find Bottom Left Tree Value

2019-01-02
阅读 1 分钟
1.3k
Given a binary tree, find the leftmost value in the last row of the tree.

leetcode讲解--700. Search in a Binary Search Tree

2018-12-26
阅读 2 分钟
1.6k
Given the root node of a binary search tree (BST) and a value. You need to find the node in the BST that the node's value equals the given value. Return the subtree rooted with that node. If such node doesn't exist, you should return NULL.

leetcode讲解--951. Flip Equivalent Binary Trees

2018-12-25
阅读 2 分钟
1.9k
For a binary tree T, we can define a flip operation as follows: choose any node, and swap the left and right child subtrees.

leetcode讲解--617. Merge Two Binary Trees

2018-12-18
阅读 2 分钟
1.5k
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.

leetcode讲解--814. Binary Tree Pruning

2018-12-18
阅读 2 分钟
2.1k
We are given the head node root of a binary tree, where additionally every node's value is either a 0 or a 1.