- 博客(6)
- 收藏
- 关注
原创 111. Minimum Depth of Binary Tree
1.问题描述Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node.Note: A leaf is a node with no...
2018-06-29 19:34:36 118
原创 111. Minimum Depth of Binary Tree
1.问题描述Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node.Note: A leaf is a node with no...
2018-06-29 19:34:33 156
原创 107. Binary Tree Level Order Traversal II
1.问题描述Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For example:Given binary tree [3,9,20,null,nu...
2018-06-26 22:04:30 90
原创 101. Symmetric Tree
1.问题描述Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree [1,2,2,3,4,4,3] is symmetric: 1 / \ 2 2 / \ / \3 4 ...
2018-06-24 16:54:45 152
原创 104. Maximum Depth of Binary Tree
1.问题描述Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.Note: A leaf is a node wi...
2018-06-14 17:27:56 152
原创 226. Invert Binary Tree
1.问题描述Invert a binary tree.Example:Input: 4 / \ 2 7 / \ / \1 3 6 9Output: 4 / \ 7 2 / \ / \9 6 3 1来自 <https://leetcode.com/problems/invert-b...
2018-06-10 10:21:52 148
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人