Question DSA-REC-0068
HardHow many ways can n = 4 be written as an ordered sum of 1s and 2s?
- A.
5
- B.
4
- 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
Recursion and Backtracking question
How many ways can n = 4 be written as an ordered sum of 1s and 2s?
5
4
Sign up free to see the answer and a step-by-step explanation.
6
8