Coin change logic

前端 未结 0 1735
我寻月下人不归
我寻月下人不归 2021-02-07 00:36

Im stuck at this problem about the change of a vending machine (using 10ct, 20 ct, 50ct, 100ct and 200ct-coins.)

So lets say coffee costs 40cts. The user throws in 2€ (la

相关标签:
回答
  • 消灭零回复
提交回复
热议问题