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

Join Shalyam Newsletter

Get exclusive insights with every issue: education, research and innovation news.

One email a week. Unsubscribe any time.