Problem-solving patterns

Generalize fast across problems.

Recognize repeatable strategies like sliding window, two pointers, and topological sort. Each card highlights signals, invariants, and pitfalls.

Pattern checklist

  • Signals tell you when the pattern applies.
  • Invariants explain what must stay true.
  • Pitfalls remind you what to avoid.

All patterns

Use these as your first pass on new problems.