Nth Fibonacci

Approach

Tools

- Hashmap

- Recursion 


Technique

- Create Hashmap with base case

- If value does not exist on the map, calculate it recursively and store it on the map for future use

- If exist, just return the value



Code Solution

Share