Question: What is the main difference between top-down and bottom-up approaches in dynamic programming?
Options:
Correct Answer: Top-down uses recursion, bottom-up uses iteration
Solution:
The main difference is that the top-down approach uses recursion and memoization, while the bottom-up approach builds the solution iteratively.