Leetcode 简单二十七 二叉树的最小深度

二叉树的最小深度: php: 28ms。递归。 /** * Definition for a binary tree node. * class TreeNode { * public $val = null; * public $left = null; * public $right = null; * function __construct($v
相关文章
相关标签/搜索