Skip to main content

All Questions

Filter by
Sorted by
Tagged with
3 votes
1 answer
3k views

A variant of coin change problem

Consider a cashier machine that takes payments in coins. We feed the machine coins one by one until the value is more than the amount we should have paid. Then the machine returns the extra amount in ...
Saeid's user avatar
  • 339