The coverage counter behind Minimum Window Substring
6 min read Walking Minimum Window Substring from the brute-force baseline to the O(n) sliding window that tracks coverage with a single counter. Read article
6 min read Walking Minimum Window Substring from the brute-force baseline to the O(n) sliding window that tracks coverage with a single counter. Read article
7 min read Why 3Sum sorts first, where the duplicate skips go, and what interviewers ask once your two-pointer solution compiles. Read article
6 min read The two-pointer window that turns a quadratic substring scan into one linear pass, plus the stale-index guard that quietly breaks the fast version. Read article
6 min read How sorting by start time turns merge intervals, insert interval, and meeting rooms into one linear sweep. Read article
6 min read The trapped-water problem has three standard solutions, and the gap between them is what an interviewer is actually grading. Read article
6 min read Two Sum looks trivial, but the jump from the brute-force pair check to the one-pass hash map is the exact skill interviewers are screening for. Read article
What's missing, wrong, or worth adding? One line helps.
Sent — thank you. We read every one.