Blog
Tutorials, guides, and insights to help you become a better developer.
Two pointers, one pass, O(n) — learn how the variable-size sliding window grows and shrinks to solve substring and subarray problems efficiently.
AdminJanuary 15, 20264 min read
Stop re-summing from scratch — the fixed-size sliding window reduces O(n·k) nested loops to a single O(n) pass by adding one element and dropping one.
AdminJanuary 12, 20264 min read
Most people reach for the nested loop on Two Sum — here's why the hash map pattern is the interview move, plus 3Sum and sorted variants.
AdminJanuary 9, 20265 min read
PreviousPage 4 of 4
