Loading practice questions
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?
Correct Answer: D — O(2^{n})
Explanation:
The brute force implementation finds all the possible cuts. This takes O(2^{n}) time.