mirror of
https://github.com/CyC2018/Interview-Notebook.git
synced 2026-10-27 05:23:46 +00:00
Update Leetcode 题解 - 栈和队列.md
文字校对。
This commit is contained in:
@@ -180,7 +180,7 @@ Input: [73, 74, 75, 71, 69, 72, 76, 73]
|
||||
Output: [1, 1, 4, 2, 1, 1, 0, 0]
|
||||
```
|
||||
|
||||
在遍历数组时用栈把数组中的数存起来,如果当前遍历的数比栈顶元素来的大,说明栈顶元素的下一个比它大的数就是当前元素。
|
||||
在遍历数组时用栈把数组中的数存起来,如果当前遍历的数比栈顶元素来得大,说明栈顶元素的下一个比它大的数就是当前元素。
|
||||
|
||||
```java
|
||||
public int[] dailyTemperatures(int[] temperatures) {
|
||||
|
||||
Reference in New Issue
Block a user