25 patterns that crack most array, stack and queue questions. Pull a ticket for its code; flip it for the bill.
Pointers, windows, sums and in-place tricks
Last in, first out: matching, monotonic order, parsing
First in, first out: windows, streams, level-by-level spread