dsainterview-prep
the DSA pattern that finally clicked for me was realizing two pointers and sliding window are basically the same idea wearing different clothes
Anonymous
Spent months treating them as separate techniques to memorize separately. Once I saw sliding window as just two pointers where one of them only moves forward under a condition, a bunch of problems I'd been treating as unrelated started looking like variations of the same three lines of logic.
0