mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-08 16:54:50 +08:00
修改0739每日温度 python 精简版本
This commit is contained in:
@ -297,7 +297,6 @@ class Solution:
|
|||||||
```python
|
```python
|
||||||
class Solution:
|
class Solution:
|
||||||
def dailyTemperatures(self, temperatures: List[int]) -> List[int]:
|
def dailyTemperatures(self, temperatures: List[int]) -> List[int]:
|
||||||
# 单调栈
|
|
||||||
answer = [0]*len(temperatures)
|
answer = [0]*len(temperatures)
|
||||||
stack = []
|
stack = []
|
||||||
for i in range(len(temperatures)):
|
for i in range(len(temperatures)):
|
||||||
|
Reference in New Issue
Block a user