s0503
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-12-16 16:12:04 +08:00
parent 676611e233
commit 1775c33c9f
4 changed files with 77 additions and 0 deletions

View File

@@ -29,6 +29,16 @@
[496. 下一个更大元素 I](https://leetcode.com/problems/next-greater-element-i/)
[503. 下一个更大元素 II](https://leetcode.com/problems/next-greater-element-ii/)
Tips: 循环数组的处理方法:
```cpp
for (int i{0}; i < 2 * len; ++i) {
nums[i % len] ...
}
```
## 队列
使用场景: