How this track works
What every problem page contains, how to use the visualizer and the dry run, and how to practise so the patterns stick.
This track isn't a list of answers to memorise. It teaches the handful of patterns that solve most interview problems, using 150 problems that companies really ask. Once you can spot the pattern, a new problem stops being scary: you already know the shape of the answer.
01What's on every problem page
Each problem follows the same order, so you always know where to look:
- The problem, in plain words, with examples.
- How to spot it: the clues in the question that point to the pattern.
- Pseudocode: the idea in a few short lines before any Java. If you can't write the pseudocode, the Java won't help.
- Watch it work: an animated visualizer that runs the algorithm on an example, one step at a time.
- Step-by-step dry run: the same steps written out, to read or print.
- Java solution: complete, tested code you can run in the page.
- Why it works, time and space, edge cases, common mistakes and other approaches.
- In the interview: follow-up questions you'll likely be asked.
- A memory trick and a short quiz, then a link to solve it yourself.
02Using the visualizer
Press ▶ Play to watch, or step with ◀ ▶ (the arrow keys work too once you click the visualizer). The purple line in the pseudocode is the one running. Values that just changed light up in amber.
- Speed: 1× is a comfortable pace; use 0.5× the first time through a hard problem.
- Voice: turn it on and the visualizer reads each step aloud, waiting until it finishes before moving on. It uses your device's built-in voice, so it sounds different on each phone or computer.
03How to practise
- Read the problem and try for 20 minutes on paper before scrolling down.
- Read "How to spot it" and the pseudocode. Try again.
- Watch the visualizer, then write the Java yourself without looking.
- Come back after 3 days and solve it again from scratch. If you can't, that's normal: repeat step 3.
04Which problems are free
The start-here lessons, every pattern lesson and the first few problems of each chapter are free. The rest, with all their visualizers, are part of Veltoryx Pro.