The _______ approach for solving the coin change problem may not always yield the optimal solution.

  • Greedy
  • Recursive
  • Brute-force
  • Iterative
The correct option is "Greedy." While the greedy approach works for some cases, it may not always yield the optimal solution for the coin change problem. Greedy algorithms make locally optimal choices at each stage, which may not lead to the overall optimal solution.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *