What's a DSA pattern that finally clicked for you after months of it not making sense?
Sliding window was the one for me. Read the explanation a dozen times over a few months and it stayed abstract, shrink the window, grow the window, sure, whatever. Then I happened to draw it out on paper as an actual physical window sliding over a strip of numbers instead of thinking about indices, and something clicked that no amount of reading did. Curious what pattern did that for other people, and whether it was also a visual thing or something else entirely.
3 comments
- 0
AnonymousAnon The visual thing tracks for me too, I'm the same way with recursion, didn't get it until I actually drew the call stack out by hand instead of just reading about it.
- 0
AnonymousAnon Two pointers was mine. Kept confusing it with sliding window honestly until I forced myself to only think about it in terms of two indices moving toward or away from each other and nothing else.