2024-02-28发表2025-06-10更新LeetCode每日一题几秒读完 (大约107个字)2673. 使二叉树所有路径值相等的最小代价使二叉树所有路径值相等的最小代价 难度: medium 原始链接: https://leetcode.cn/problems/make-costs-of-paths-equal-in-a-binary-tree 标签: 贪心 阅读更多
2024-02-27发表2025-06-10更新LeetCode每日一题1 分钟读完 (大约216个字)2867. 统计树中的合法路径数目统计树中的合法路径数目 难度: hard 原始链接: https://leetcode.cn/problems/count-valid-paths-in-a-tree 标签: 深度优先遍历 阅读更多
2024-02-26发表2025-06-10更新LeetCode每日一题几秒读完 (大约107个字)938. 二叉搜索树的范围和二叉搜索树的范围和 难度: easy 原始链接: https://leetcode.cn/problems/range-sum-of-bst 标签: 递归 阅读更多
2024-02-25发表2025-06-10更新LeetCode每日一题1 分钟读完 (大约117个字)235. 二叉搜索树的最近公共祖先二叉搜索树的最近公共祖先 难度: medium 原始链接: https://leetcode.cn/problems/lowest-common-ancestor-of-a-binary-search-tree 标签: 一次遍历 阅读更多
2024-02-24发表2025-06-10更新LeetCode每日一题1 分钟读完 (大约207个字)2476. 二叉搜索树最近节点查询二叉搜索树最近节点查询 难度: medium 原始链接: https://leetcode.cn/problems/closest-nodes-queries-in-a-binary-search-tree 标签: 中序遍历, 二分查找 阅读更多