Data Structures & AlgorithmsVery hardProduct company OA · Amazon/Microsoft-style OA

In how many ways can a 3 x 4 grid be covered completely by non-overlapping 1 x 2 dominoes (each domino covers two adjacent cells, in either orientation)?

  1. A. 13
  2. B. 10
  3. C. 11
  4. D. 19

Correct answer: C. 11

A profile DP tracks which cells of the next column are already covered. The 3 x 4 grid has 11 domino tilings; a 3 x 2 grid has 3 and a 3 x 6 grid has 41, so the sequence grows by a fixed recurrence.

More Coding Interview Problems questions

Exams that ask this topic