PATTERN 01 · 7 PROBLEMS
Array scans & hashing
Trade repeated scanning for direct lookup, counting, or a compact prefix/suffix summary.
Start the first lesson ↗MASTER KEYName what you need to remember before choosing the container.
0OF 7
RECALLED
RECALLED
A yes/no repeat question calls for remembering what has already appeared.
Not started
↗02Contains Duplicate
A yes/no repeat question calls for remembering what has already appeared.
Not started
↗03Valid Anagram
Order does not matter, but multiplicity does.
Not started
↗04Two Sum
The complement target − value identifies exactly what prior fact is needed.
Not started
↗05Group Anagrams
Anagrams share a canonical character-count signature.
Not started
↗06Product of Array Except Self
Each answer is left product × right product.
Not started
↗07Encode and Decode Strings
Content needs an unambiguous boundary even when it contains separators.
Not started
↗Longest Consecutive Sequence
Only values without a predecessor can begin a new run.