[Leetcode] 739. Daily Temperatures
Leetcode 739. Daily Temperatures Daily Temperatures - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Solution class Solution: def dailyTemperatures(self, T: List[int]) -> List[int]: stack = [] result = [0]*len(T) for i, n in enumerate(T): while stack and n > T[stack[-1]]: top = st..
2021.01.18