- 博客(260)
- 收藏
- 关注
原创 LCR 055. 二叉搜索树迭代器(中等)(主站173)
本题与主站 173 题相同: https://leetcode-cn.com/problems/binary-search-tree-iterator/难度:☆☆☆。
2024-12-16 14:35:37
1385
原创 LCR 054. 把二叉搜索树转换为累加树(中等)(主站538\1038)
本题与主站 538 题相同: https://leetcode-cn.com/problems/convert-bst-to-greater-tree/本题与主站 1038 题相同:https://leetcode-cn.com/problems/binary-search-tree-to-greater-sum-tree/难度:☆☆☆。
2024-12-16 11:38:39
673
原创 LCR 047. 二叉树剪枝(中等)(主站814)
https://leetcode.cn/problems/pOCWxh/https://leetcode.cn/problems/binary-tree-pruning/难度:☆☆☆题目:给定一个二叉树 根节点 root ,树的每个节点的值要么是 0,要么是 1。返回移除了所有不包含 1 的子树的原二叉树。节点 node 的子树为 node 本身,以及所有 node 的后代。示例:输入: [1,null,0,0,1]输出: [1,null,0,null,1]解释:只有红色节点满足条件
2024-12-09 08:46:51
311
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人