Step 1/0
Custom array:
Complexity
Best:O(n)
Average:O(n)
Worst:O(n)
Space:O(n)
Description
Computes Fibonacci numbers using memoization (top-down) or tabulation (bottom-up), showing how DP eliminates redundant computation.
When to use
Demonstrates the core DP concept. Memoization vs tabulation trade-offs apply to many optimization problems.