算法日记 - 单调栈五连
LC 739. 每日温度 739. 每日温度 - 力扣(LeetCode) class Solution { public: vector<int> dailyTemperatures(vector<int>& temperatures) { int len = temper
LC 739. 每日温度 739. 每日温度 - 力扣(LeetCode) class Solution { public: vector<int> dailyTemperatures(vector<int>& temperatures) { int len = temper
LC 509. 斐波那契数:https://leetcode.cn/problems/fibonacci-number/ 509. 斐波那契数 - 力扣(LeetCode) class Solution { public: int fib(int n) { if
LC 455.分发饼干:https://leetcode.cn/problems/assign-cookies/ 455. 分发饼干 - 力扣(LeetCode) class Solution { public: int findContentChildren(vector<int>& g,
LC 77. 组合 77. 组合 - 力扣(LeetCode) class Solution { public: vector<vector<int>> combine(int n, int k) { std::vector<int> tRes; vector
LC 144. 二叉树的前序遍历:https://leetcode.cn/problems/binary-tree-preorder-traversal/ 144. 二叉树的前序遍历 - 力扣(LeetCode)
232. 用栈实现队列 232. 用栈实现队列 - 力扣(LeetCode) class MyQueue { public: MyQ
344. 反转字符串 344. 反转字符串 - 力扣(LeetCode) class Solution { public: void reverseString(vector<char>&
LC 242. 有效的字母异位词 242. 有效的字母异位词 - 力扣(LeetCode) class Solution { public: bool
输出二进制 void DEC_2_binSystem(size_t n, size_t x) { std::vector<int> ans; while (n != 1) { //printf("%d", (n % 2)); ans.push_back((n % 2)); n /=