Skip to main content
/
Concepts
/
Greedy vs DP
1 / 8
Speed
EN
ES
Greedy vs DP
Greedy
target =
8
coins:
1
4
6
Step 1:
Coin Change: make 8 using coins [1, 4, 6] with fewest coins. Let's try Greedy first.