MCQ Practice

When a top-down approach of dynamic programming is applied to a problem, it usually . . . . . . . .

A

Decreases both, the time complexity and the space complexity

B

Decreases the time complexity and increases the space complexity

C

Increases the time complexity and decreases the space complexity

D

Increases both, the time complexity and the space complexity

Correct Answer: B