18 worked problems

Strings

Scan, compare, and build character by character. Character order, matching, parsing, or repeated substrings drive the state.

Recognition signal

When should you think of Strings?

Character order, matching, parsing, or repeated substrings drive the state.

Core invariant

What must stay true?

Indices and auxiliary state describe the exact prefix or window already understood.

Practice in a deliberate order

What to learn in this cluster

  1. 01Character scans
  2. 02Parsing and matching
  3. 03Prefix algorithms and palindromes

All Strings problems

18 of 18 walkthroughs
Continue the cluster

Related patterns and study guides