4 problems using this pattern
Break problems into subproblems and memoize results to avoid redundant computation.
O(n)
(2 problems)
O(amount × coins)
(1 problem)
O(n²)
(1 problem)
O(1)
(2 problems)
O(amount)
(1 problem)
O(n)
(1 problem)