Dynamic Programming

4 problems using this pattern

About this pattern:

Break problems into subproblems and memoize results to avoid redundant computation.

Complexity Range

Time Complexity

O(n) (2 problems)
O(amount × coins) (1 problem)
O(n²) (1 problem)

Space Complexity

O(1) (2 problems)
O(amount) (1 problem)
O(n) (1 problem)

Problems Using Dynamic Programming

← Back to All Patterns