LeetCode: Daily Temperatures
Problem:
https://leetcode.com/problems/daily-temperatures/
Code:
class Solution:
def dailyTemperatures(self, temperatures: List[int]) -> List[int]:
stack=[]
n=len(temperatures)
answer=[0]*n
for i in range(n):
...
is-power-of-two.hashnode.dev4 min read