摘要: 【0111.二叉树的最小深度】 迭代法容易套模板 容易想到 递归法三部曲中第二步、第三步 都想不到 class Solution { public: int minDepth(TreeNode* root) { if (root == NULL) return 0; int depth = 0; q 阅读全文
posted @ 2022-12-04 20:26 跬步瑶 阅读(23) 评论(0) 推荐(0)