We have coins of values 1, 3, 7 and 13. And, we need to pay N. We wanted to figure out the minimum number of coins required to pay the amount N.
Consider the following algorithm:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
What can you say about this algorithm?
This problem is a part of Tessellate S.T.E.M.S.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
No explanations have been posted yet. Check back later!