Interview Scenarios: the new section of Data Structures and Algorithms, taught by Dev Halai.
You're in the interview. The timer is running. The interviewer smiles and says, "Take your time. Talk me through it."
No Copilot. No ChatGPT. Just you, a blank editor and a problem you've never seen. If your palms got a bit sweaty reading that, you're in good company. We've all been there.
Here's the good news. The people who stay calm in that moment aren't usually geniuses. They've practised spotting patterns, so the problem looks familiar the second it shows up.
So we built a place to practise.
Interview Scenarios
It's the new section of our Data Structures and Algorithms course, and it's out now on Scrimba Pro.
Our Pro teacher, Dev (great name!), takes you through five patterns that keep turning up in coding interviews. He shows you how each one works, then hands you the keyboard: eight challenges to solve yourself, right in the Scrimba editor.
Inside, you'll:
🧮 Answer "what's the total from here to here?" in one step with prefix sums
🪟 Find the best run in a list with a sliding window, without adding everything up again
👉 Solve palindrome, pair-sum and duplicate problems with two pointers
🔎 Search a million sorted items in about 20 checks with binary search
📚 Find the next bigger value for every item in one pass with a monotonic stack
It's 21 lessons and about an hour and 45 minutes, so you can fit it into a couple of evenings before your next interview.
Already worked through Shant's part of the course? This picks up right where it ends, and your progress is still there.
AI is a great study buddy. In the interview, though, you're the one explaining the solution, and that's what this practice gets you ready for.