Days until a warmer day
You get temps, the daily temperatures in order. For each day, return how many days you must wait until a strictly warmer day. If no warmer day comes, that day's answer is 0.
Aim for O(n): comparing every pair of days is O(n²).
Besides the tests, one large input (7,000 days) with a ~200 ms limit (scaled to your device's speed): brute force won't pass.
Examples
days_until_warmer([73,74,75,71,69,72,76,73])→[1,1,4,2,1,1,0,0]days_until_warmer([30,40,50,60])→[1,1,1,0]days_until_warmer([60,50,40,30])→[0,0,0,0]