← PATTERN ATLAS
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
RECOGNITION SIGNAL

A yes/no repeat question calls for remembering what has already appeared.

01
Not started

Contains Duplicate

A yes/no repeat question calls for remembering what has already appeared.

↗
02
Not started

Valid Anagram

Order does not matter, but multiplicity does.

↗
03
Not started

Two Sum

The complement target − value identifies exactly what prior fact is needed.

↗
04
Not started

Group Anagrams

Anagrams share a canonical character-count signature.

↗
05
Not started

Product of Array Except Self

Each answer is left product × right product.

↗
06
Not started

Encode and Decode Strings

Content needs an unambiguous boundary even when it contains separators.

↗
07
Not started

Longest Consecutive Sequence

Only values without a predecessor can begin a new run.

↗