Breadth First Search

LeetCode

【LeetCode】 111. Minimum Depth of Binary Tree 解答・解説【Python】

問題 原文 Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path...