mirror of
https://github.com/CyC2018/Interview-Notebook.git
synced 2026-11-19 12:33:46 +00:00
Update Leetcode 题解 - 栈和队列.md
代码格式调整。
This commit is contained in:
@@ -242,7 +242,7 @@ public int[] nextGreaterElements(int[] nums) {
|
||||
while (!pre.isEmpty() && nums[pre.peek()] < num) {
|
||||
next[pre.pop()] = num;
|
||||
}
|
||||
if (i < n){
|
||||
if (i < n) {
|
||||
pre.push(i);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user