Spot the bug: Daily Temperatures that counts equal days as warmer

medium
Monotonic stack

Bug 9 of 12

This Python solution is supposed to do the following: For each day, return how many days you wait for a strictly warmer temperature (0 if never). It has one bug. Find the line in two tries.

Tap the line with the bug

2 tries left

FAQ