Algorithm to determine the minimal set of coins you should carry to always make exact change [closed]
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
开发者_如何学编程 Improve this questionUS 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?
精彩评论