DIY: Daily Temperatures

Solve the interview question "Daily Temperatures" in this lesson.

Problem statement

You are given an array of integers, temperatures, which represents the daily temperatures. You have to return an array, days, such that days[i] is the number of days you have to wait after the ithi^{th} ...

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.