Daily Temperatures, solved three ways

Try:
CALL
1 / 1

Code

The highlighted line runs next. The pill shows the live values in the running call.

Cost

Work done so far, and how the three solutions compare

Temperatures

Green arrows: each day → its next warmer day

Keyboard: ← → step, Space play or pause. 1 to 14 whole-number temperatures from 1 to 100. "Warmer" means strictly greater: try "equal isn't warmer". Faded res cells aren't final yet.