Modify the recursive Fibonacci function to employ the memoization technique discussed in this chapter. The function should expect a dictionary as an additional argument. The top-level call of the function receives an empty dictionary. The function’s keys and values should be the arguments and values of the recursive calls. Also use the Counter object discussed in this chapter to count the number of recursive calls.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here