Examveda

Consider the brute force implementation of the rod cutting problem in which all the possible cuts are found and the maximum value is calculated. What is the time complexity of this brute force implementation?

A. O(n2)

B. O(n3)

C. O(nlogn)

D. O(2n)

Answer: Option D


Join The Discussion

Related Questions on Dynamic Programming in Data Structures