Daily Temperatures
Medium
Stack
Given an array of daily temperatures, print for each day how many days you must wait for a warmer temperature. If there is no warmer day in the future, print 0.
Constraints
1 <= n <= 10^5 30 <= temperature <= 100
Discussion
No discussions yet.
Join Shalyam Newsletter
Get exclusive insights with every issue: education, research and innovation news.
Shalyam Support
Hi! Ask us anything โ we'll reply on WhatsApp or Telegram within 24 hours.