2026-08-03Leetcode Hot 1002 分钟二叉树的直径本文讲解 LeetCode 543 题“二叉树的直径”,通过递归求深度并更新全局最大值,给出清晰 Python 解法。LeetcodePython二叉树递归