dsainterview-preplearning
sliding window finally clicked when I stopped thinking of it as a trick and started thinking of it as two pointers that owe each other rent
Anonymous
Every explanation I read made it sound like a special technique you either know or don't. What actually worked was just tracking what the left pointer owes the right one as the window grows and shrinks. Once I had that mental model the whole category of problems stopped feeling like memorization.
1