This commit is contained in:
@@ -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] ...
|
||||
}
|
||||
```
|
||||
|
||||
## 队列
|
||||
|
||||
使用场景:
|
||||
|
Reference in New Issue
Block a user