Week 7 Discussion Forum

dynamic programming time complexity

dynamic programming time complexity

by hafiz 191-15-2343 -
Number of replies: 0

In Dynamic programming problems, Time Complexity is the number of unique states/subproblems * time taken per state. In this problem, for a given n, there are n unique states/subproblems. For convenience, each state is said to be solved in a constant time. Hence the time complexity is O(n * 1).

51 words