What is the time complexity of calculating the nth Fibonacci number using dynamic programming?
O(N)
O(logN)
O(2^N)
O(N^2)
This question is part of this quiz :