Daily Temperatures
Given an array of daily temperatures Return an array where answer[i] is the number of days to wait for a warmer temperature If there's no future warmer day, answer[i] = 0 Example: [73,74,75,71,69,72,76,73] => [1,1,4,2,1,1,0,0]
This is a stack/invariant problem: once your stack represents the right thing, the rest is routine. Interviewers love it because it reveals your stack invariants and your edge-case discipline. Most solutions fail when the stack meaning gets fuzzy—name it and guard it.

Meet Coco
Coco is an AI study partner, not a person. She listens while you explain your code, asks what a line does and never hands you the fix. Typing with Coco is free when you sign in, up to a daily limit. Talking with her out loud comes with the $79 pack. Anyone can open the editor and run their code.
Each locked part opens in the editor once the part before it passes.