Loop Invariants Part 1 — The One Concept That Makes Algorithms Click
Most people solve algorithms by trial and error. Write code, run tests, tweak, repeat. Eventually it passes. They move on.
But they can't tell you why it passed. And when the next problem looks slightly different — same pattern, different wrapping — ...
patternthinking.hashnode.dev14 min read