摘要: 235. 二叉搜索树的最近公共祖先 题目链接:https://leetcode.cn/problems/lowest-common-ancestor-of-a-binary-search-tree/ 题目难度:中等 文章讲解:https://programmercarl.com/0235.二叉搜索树 阅读全文
posted @ 2024-07-22 15:19 云雀AC了一整天 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 530. 二叉搜索树的最小绝对差 题目链接:https://leetcode.cn/problems/minimum-absolute-difference-in-bst/ 题目难度:简单 文章讲解:https://programmercarl.com/0530.二叉搜索树的最小绝对差.html 视 阅读全文
posted @ 2024-07-20 10:32 云雀AC了一整天 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 654. 最大二叉树 题目链接:https://leetcode.cn/problems/maximum-binary-tree/ 题目难度:中等 文章讲解:https://programmercarl.com/0654.最大二叉树.html 视频讲解:https://www.bilibili.co 阅读全文
posted @ 2024-07-19 15:21 云雀AC了一整天 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 513. 找树左下角的值 题目链接:https://leetcode.cn/problems/find-bottom-left-tree-value/ 题目难度:中等 文章讲解:https://programmercarl.com/0513.找树左下角的值.html 视频讲解:https://www 阅读全文
posted @ 2024-07-18 15:45 云雀AC了一整天 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 110. 平衡二叉树 题目链接:https://leetcode.cn/problems/balanced-binary-tree/ 题目难度:简单 文章讲解:https://programmercarl.com/0110.平衡二叉树.html 视频讲解:https://www.bilibili.c 阅读全文
posted @ 2024-07-17 16:47 云雀AC了一整天 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 226. 翻转二叉树 题目链接:https://leetcode.cn/problems/invert-binary-tree/ 题目难度:简单 文章讲解:https://programmercarl.com/0226.翻转二叉树.html 视频讲解:https://www.bilibili.com 阅读全文
posted @ 2024-07-16 16:21 云雀AC了一整天 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 二叉树的基本知识 链接:https://programmercarl.com/二叉树理论基础.html 要点: 深度优先遍历 前序遍历(递归法,迭代法) 中序遍历(递归法,迭代法) 后序遍历(递归法,迭代法) 广度优先遍历 层次遍历(迭代法) 由于栈就是递归的一种实现结构,因此前中后序遍历的逻辑可以 阅读全文
posted @ 2024-07-15 17:59 云雀AC了一整天 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 150. 逆波兰表达式求值 题目链接:https://leetcode.cn/problems/evaluate-reverse-polish-notation/ 题目难度:中等 文章讲解:https://programmercarl.com/0150.逆波兰表达式求值.html 视频讲解:http 阅读全文
posted @ 2024-07-13 10:47 云雀AC了一整天 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 232. 用栈实现队列 题目链接:https://leetcode.cn/problems/implement-queue-using-stacks/ 题目难度:简单 文章讲解:https://programmercarl.com/0232.用栈实现队列.html 视频讲解:https://www. 阅读全文
posted @ 2024-07-12 16:28 云雀AC了一整天 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 151. 反转字符串中的单词 题目链接:https://leetcode.cn/problems/reverse-words-in-a-string/ 题目难度:中等 文章讲解:https://programmercarl.com/0151.翻转字符串里的单词.html 视频讲解: https:// 阅读全文
posted @ 2024-07-11 10:46 云雀AC了一整天 阅读(22) 评论(0) 推荐(0) 编辑