【leetcode】Python实现-111.二叉树的最小深度

111.二叉树的最小深度 描述 我python if root is None: return 0 p = [root] current_level_num = 1 next_level_num = 0 i = 1 while p: current = p.pop(0)
相关文章
相关标签/搜索