Every exercise in this section asked the same question in a new costume: what do I need to remember about what I’ve already seen? Here’s the question that cracked each one:
| Exercise | The question that unlocked it |
|---|---|
| Flag Repeat Signups | Have I seen this normalized email, and have I already reported it? |
| First One-Off Reaction | How many times does each reaction appear, counted by code point? |
| Two Sum: Cover a Gift Card Balance | Has the price I’m missing already appeared, and where? |
| Longest Streak of Active Days | Is this day the start of a streak, or is the day before it in the set? |
| Review an AI-Written Tag Ranker | Which inputs would this plausible code get wrong? |
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 Hashing work?
Memory was your currency in this section. The Two Pointers section shows how sorted or mirrored data lets you skip that cost entirely.