Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

111. 二叉树的最小深度 #52

Copy link
Copy link
@yankewei

Description

@yankewei
Issue body actions

给定一个二叉树,找出其最小深度。

最小深度是从根节点到最近叶子节点的最短路径上的节点数量。

说明: 叶子节点是指没有子节点的节点。

示例:

给定二叉树 [3,9,20,null,null,15,7],

    3
   / \
  9  20
    /  \
   15   7
返回它的最小深度  2.

来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/minimum-depth-of-binary-tree

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    广度优先搜索题目包含广度优先搜索解法题目包含广度优先搜索解法题目类型为树结构题目类型为树结构深度优先搜索题目包含深度优先搜索解法题目包含深度优先搜索解法简单题目难度为简单题目难度为简单

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.