摘要: 144. 二叉树的前序遍历 详解 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val(0), l 阅读全文
posted @ 2023-08-22 16:03 zqh2023 阅读(272) 评论(0) 推荐(0)
摘要: https://zhuanlan.zhihu.com/p/503464361 https://blog.csdn.net/weixin_57761086/article/details/126802156 阅读全文
posted @ 2023-08-22 14:31 zqh2023 阅读(9) 评论(0) 推荐(0)
摘要: 239. 滑动窗口最大值 详解 // 队列que是STL的双向队列deque // 队列存放的是元素在序列中的序号 //参考https://www.jianshu.com/p/e59d51e1eef5 class Solution { public: vector<int> maxSlidingWi 阅读全文
posted @ 2023-08-22 14:18 zqh2023 阅读(45) 评论(0) 推荐(0)
摘要: 一文彻底弄懂单调栈及双单调栈 https://www.zhihu.com/question/485257774/answer/2375650870 单调队列 阅读全文
posted @ 2023-08-22 10:24 zqh2023 阅读(8) 评论(0) 推荐(0)