Consider the Fibonacci sequence. What is the time complexity of calculating the nth Fibonacci number using dynamic programming with tabulation?
O(n)
O(log n)
O(1)
O(n^2)

Data Structures and Algorithms Exercises are loading ...