解题思路这题是 “Next Greater Elment”类型的题目,直接用单调栈 (栈底元素最大)。
代码class Solution {
public int[] dailyTemperatures(int[] T)
2021-03-15