开发者

Algorithm to determine the minimal set of coins you should carry to always make exact change [closed]

开发者 https://www.devze.com 2022-12-31 06:38 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 12 years ago.

开发者_如何学编程 Improve this question

US coin values:

.01, .05, .10, .25

What is an algorithm to determine what configuration(s) of US coins can be used to match every value from .01-.99 using the fewest coins possible?

0

精彩评论

暂无评论...
验证码 换一张
取 消