不为成仙,只为在这红尘中等你回来。

107. Binary Tree Level Order Traversal II [Easy]

    ### 题意 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 tre...

    阅读全文>>

2018年5月29日 10:24 作者:nancy 分类:[LeetCode] 1405

111. Minimum Depth of Binary Tree [Easy]

    ### 题意 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 nod...

    阅读全文>>

2018年5月24日 10:20 作者:nancy 分类:[LeetCode] 1371

101. Symmetric Tree [Easy]

    ### 题意 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,4,3] 是对称的。 ``` 1 / \ 2 ...

    阅读全文>>

2018年5月22日 10:35 作者:nancy 分类:[LeetCode] 1359