Question DSA-DP-0072
HardWhat is the recurrence for the number of ways to tile a 2 × n board with 1 × 2 dominoes?
- A.
T(n) = 2T(n − 1)
- B.
T(n) = n!
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Dynamic Programming question
What is the recurrence for the number of ways to tile a 2 × n board with 1 × 2 dominoes?
T(n) = 2T(n − 1)
T(n) = n!
Sign up free to see the answer and a step-by-step explanation.
T(n) = T(n − 1) + T(n − 2)
T(n) = T(n − 1) + 1