Question DSA-REC-0049
MediumHow many times is fib(2) called when computing fib(5) with naive recursion (fib(0) = 0, fib(1) = 1)?
- A.
3
- 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 times is fib(2) called when computing fib(5) with naive recursion (fib(0) = 0, fib(1) = 1)?
3
4
Sign up free to see the answer and a step-by-step explanation.
5
2