402移掉K位数字
Posted on
Words count in article:
292
|
Reading time ≈
1
402移掉K位数字
单调栈或者字符串解法目标就是删除几个大的数,但又要维持原来的顺序不改变,字符串是栈解法的高级版本
单调栈
123456789101112131415161718192021222324252627282930class Solution {public: string
...
394字符串解码
Posted on
Words count in article:
805
|
Reading time ≈
3
394 字符串解码下面是题目
下面是题目给出的模板12345class Solution {public: string decodeString(string& s) { }};
题解
这题不看题解我真滴很难做,思路是有一点,但是要把它编
...
331验证二叉树的前序序列化
Posted on
Words count in article:
255
|
Reading time ≈
1
331验证二叉树的前序序列化
下面是题目给出的代码123456class Solution {public: bool isValidSerialization(string preorder) { }};
解法题解
最后#的数量肯
...
1021删除最外层得括号
Posted on
Words count in article:
450
|
Reading time ≈
1
1021 删除最外层的括号下面是题目
下面是模板123456class Solution {public: string removeOuterParentheses(string S) { }};
我自己是没有办法想出很妙的算法的1
...
59-1滑动窗口的最大值
Posted on
Words count in article:
433
|
Reading time ≈
2
59-1滑动窗口最大值
题目给出的代码12345class Solution {public: vector<int> maxSlidingWindow(vector<int>& nums, int k) { }
...
map容器
map容器的基本操作
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
...
set容器
set容器
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
...
list容器
list 容器的基本操作与示范
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697
...