Question DSA-DP-0080
HardThe number of binary strings of length n with no two consecutive 1s is:
- A.
F(n + 2), a Fibonacci number
- B.
n + 1
- 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
The number of binary strings of length n with no two consecutive 1s is:
F(n + 2), a Fibonacci number
n + 1
Sign up free to see the answer and a step-by-step explanation.
n²
2ⁿ