2025-01-15 13:41:37
This commit is contained in:
@ -26,4 +26,5 @@ Greedy algorithms always optimize for the current best chest, ignoring any possi
|
||||
|
||||
This can work in cases where a problem has a greedy property.
|
||||
### Making Change Problem
|
||||
In the case where the denominations are always larger/equal to 2 of the smaller denominations then it makes sense when giving change, to simply give the largest coin available.
|
||||
In the case where the denominations are always larger/equal to 2 of the smaller denominations then it makes sense when giving change, to simply give the largest coin available.
|
||||
|
||||
|
Reference in New Issue
Block a user