Hash mapping concepts to neurons...
Recognize triggers β Apply the right pattern
How to use: When you see a problem, scan these triggers. The matching pattern gives you the approach and template.
When you see:
"Two numbers that sum to target" in sorted array
"Remove duplicates in-place" or "Partition array"
"Subarray of size k" or "Window of fixed length"
"Longest/shortest subarray with condition"
"Find target in sorted array" or "First/last occurrence"
"Minimize maximum" or "Find minimum capacity/speed"
"Next greater/smaller element" or "Largest rectangle"
"Maximum in sliding window" or "Min/max in range queries"