in reply to Re^3: IBM Cloud Challenge.
in thread IBM Cloud Challenge.

You can't just subtract the biggest remaining coin. doesn't always give you the best answer.

Replies are listed 'Best First'.
Re^5: IBM Cloud Challenge.
by trippledubs (Deacon) on Aug 31, 2015 at 00:12 UTC

    ahh thank you for pointing that out. So with the input 15,11,5,2:22 you should only get two 11's, not a 15+5+2 as it is less coins. Okay try 2