Skip to main content
Admissions guidance, study banks, and career tools — get started on Shalyam

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.

Rewards · v2.1

Get Exclusive Insights with Every Issue

Join Shalyam Newsletter

Stay ahead in education, research, and innovation—straight to your inbox.