Fibonacci series using recursion, memoization, and tabulation.
Asked in the Technical stage.
Implement fibonacci_methods(n), which returns the nth Fibonacci number computed independently with all three techniques. Use the definition F(0) = 0, F(1) = 1, and F(n) = F(n - 1) + F(n - 2).
Input is a non-negative integer n. Return a three-element list in this order: [recursive_result, memoized_result, tabulated_result]. All three values must be equal.
def fibonacci_methods(n):