issues
search
Alice52
/
algorithms
This repository is for learning Algorithms.
https://programmercarl.com/
0
stars
0
forks
source link
[daily] 2021-09-20
#188
Closed
Alice52
closed
3 years ago
Alice52
commented
3 years ago
[x] issue 1
reference
discription
有效的括号
core
Stack 存入pair元素
[x] issue 2
reference
discription
删除字符串中的所有相邻重复项
core
Stack
||
StringBuilder
||
char 数组 + 双指针{相等是回退一位+不相同的元素移到头部}
[x] issue 3
reference
discription
下一个更大元素 I
core
单调栈: for + while
元素则 倒序
下标则正序 + pair
[x] issue 4
reference
discription
单调队列
core
push: 删除比自己小的
pop(int n): n 是第一个{最大的则移除}
模拟过程
[x] issue 5
reference
discription
逆波兰表达式求值
core
stack
||
使用数组模拟 stack
reference
discription
core
reference
discription
core
||
StringBuilder||
char 数组 + 双指针{相等是回退一位+不相同的元素移到头部}core
下标则正序 + pair
core
core
||
使用数组模拟 stack