SF
liuqinh2s的专栏
liuqinh2s的专栏
注册登录
关注博客
注册登录
主页
关于
RSS
leetcode讲解--872. Leaf-Similar Trees
liuqinh2s
2018-12-29
阅读 2 分钟
1.5k
Consider all the leaves of a binary tree. From left to right order, the values of those leaves form a leaf value sequence.
leetcode讲解--559. Maximum Depth of N-ary Tree
liuqinh2s
2018-12-26
阅读 2 分钟
1.7k
The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.
leetcode讲解--700. Search in a Binary Search Tree
liuqinh2s
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讲解--590. N-ary Tree Postorder Traversal
liuqinh2s
2018-12-26
阅读 3 分钟
2.1k
Given an n-ary tree, return the postorder traversal of its nodes' values.
leetcode讲解--589. N-ary Tree Preorder Traversal
liuqinh2s
2018-12-26
阅读 2 分钟
2k
Given an n-ary tree, return the preorder traversal of its nodes' values.
leetcode讲解--951. Flip Equivalent Binary Trees
liuqinh2s
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讲解--894. All Possible Full Binary Trees
liuqinh2s
2018-12-25
阅读 2 分钟
2.5k
A full binary tree is a binary tree where each node has exactly 0 or 2 children.