Blog
Tutorials, guides, and insights to help you become a better developer.
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 10 of 10