Coding challenge
Paul D. DeRocco
pderocco at ix.netcom.com
Thu Jan 31 12:54:17 EST 2013
> Mark Wieder
>
> In any of the submitted examples, replacing the string
> "50,20,10,5,2,1" with "40,30,10,4,3,1" does the right string. No more
> challenging than the original question.
>
> And yes, the minimum number of coins to represent 6 in this case is
> 3+3 and the next in line would be 4+1+1. And then six coins.
Yes, and the examples so far would render 6 as 4+1+1, not 3+3, which is the
wrong answer.
--
Ciao, Paul D. DeRocco
Paul mailto:pderocco at ix.netcom.com
More information about the use-livecode
mailing list