Skip to content

Stamping the Grid

A Hard coding interview problem in the Greedy pattern.

Likely pattern

Greedy

Commit to the locally best choice when it provably stays optimal.

Recognition cue: A single pass where the best local move never needs to be undone.

Topics

  • Array
  • Greedy
  • Matrix
  • Prefix Sum
  1. 1Hard
  2. 2Hard
  3. 3Hard
  4. 4Hard
  5. 5Hard
  6. 6Hard
  7. 7Hard
  8. 8Hard