Command Palette

Search for a command to run...

Module 42

Pattern Recognition Drills

Mixed problems with the labels hidden: read the input shape, the question and the constraints, name the pattern, then check yourself.

Advanced 3 lessons 10 problems ~30 min of lessons

Inside a module you already know which pattern is coming. In an interview you don't. This module trains the missing skill: looking at an unfamiliar problem and deciding, in a minute or two, which family of techniques fits and why.

The lessons give you a checklist (input shape, question type, constraint size) and a decision map. The drill problems come from across the course with their patterns hidden: on each problem page, name the pattern before you press reveal. Every problem is still fully worked, so you can check your reasoning afterwards.

Best after: Advanced DP, Greedy Algorithms

Unlocks next: 43. The Core 100

Part 1

Learn the ideas

Part 2

Drill: name the pattern

Mixed patterns, no labels. Read each problem, decide which pattern fits and why, then reveal.

  1. 42.1Max Consecutive Ones IIIMedium
  2. 42.2Subarray Sums Divisible by KMedium
  3. 42.3Sum of Subarray MinimumsMedium
  4. 42.4Minimum Genetic MutationMedium
  5. 42.5Path with Maximum GoldMedium
  6. 42.6Maximum Length of Pair ChainMedium
  7. 42.7Minimum Cost For TicketsMedium
  8. 42.8Find K Pairs with Smallest SumsMedium
  9. 42.9Range AdditionMedium
  10. 42.10Split Array Largest SumHard