Coding Interview
73. Set Matrix Zeroes
Jason Yang · 04 Aug, 2026
Set Matrix Zeroes (LeetCode 73): why an in-place mark-then-sweep needs the matrix's own first row and column as scratch, plus the O(1)-space Java code.
Coding Interview
Jason Yang · 04 Aug, 2026
Set Matrix Zeroes (LeetCode 73): why an in-place mark-then-sweep needs the matrix's own first row and column as scratch, plus the O(1)-space Java code.
Coding Interview
Jason Yang · 04 Aug, 2026
Unique Paths (LeetCode 62): why each grid cell is the sum of the ways from above and from the left, plus the O(n)-space rolling DP solution in Java.
Coding Interview
Jason Yang · 04 Aug, 2026
Insert Interval (LeetCode 57): why an already-sorted list lets you insert in one linear pass — the before / merge / after sweep in Java, no sorting needed.
Coding Interview
Jason Yang · 04 Aug, 2026
Merge Intervals (LeetCode 56): sort by start, then sweep once and extend the last interval whenever the next one overlaps — the Java sort-and-merge template.
Coding Interview
Jason Yang · 04 Aug, 2026
Jump Game (LeetCode 55): why one greedy pass tracking the farthest reachable index beats the O(n^2) DP, and why a trailing zero is the real trap, in Java.