Each exercise in this section parked unfinished work and settled it later. Here’s the question that told you what to park and when to take it back out:
| Exercise | The question that unlocked it |
|---|---|
| Valid Brackets in a Code Snippet | Which bracket is the most recent one still waiting to be closed, and am I in code or in text right now? |
| Replay Keystrokes With Backspace | What does Backspace remove, and how do I remove all of an emoji instead of half of it? |
| Normalize a URL Path | Which earlier segment does this .. cancel, and what’s left when there’s nothing to cancel? |
| Days Until a Higher Price | Which earlier days does today’s price finally beat? |
A quick self-check: think of the test that stayed red the longest for you. Which assumption in your code did it break? Interviewers often ask exactly that kind of question, and it’s a lot easier to answer once you’ve talked it through.
Want a second pair of eyes on your Stacks and Queues work?
Stacks and queues kept the input in its original order. The Sorting and Intervals section does the opposite: it reorders ranges first so that one sweep can answer the question.