Question: Find out how often the recursive version of fib calls itself. Keep a static variable fibCount and increment it once in every call to fib.
Find out how often the recursive version of fib calls itself. Keep a static variable fibCount and increment it once in every call to fib. What is the relationship between fib(n) and fibCount?
Step by Step Solution
3.28 Rating (160 Votes )
There are 3 Steps involved in it
Answer fibn means it find the Fibonacci of n and fibCount ... View full answer
Get step-by-step solutions from verified subject matter experts
