Anonymous user
Count the coins: Difference between revisions
m
→recursive with memoization: addings gooder Englash to the output section.
m (→recursive: added output for the optional test case of $1,000.) |
m (→recursive with memoization: addings gooder Englash to the output section.) |
||
Line 1,639:
if a <$.k then do; !.a.k=f ; return f; end /* " " " " */
!.a.k=f + kaChing(a-$.k, k) ; return !.a.k /*compute, define, return. */</lang>
'''
=={{header|Ruby}}==
|