Ah, yes I did! It's amazing what spending over four hours trying to solve a problem can do to your thought process =P
Well, my thought process at least
And Mark, thank you for the help with the pseudo-code. I will give it a try tonight :)
Well, with my example it would need to be broken down into 17 1s, 10 2s and 68 5's as that would give you the maximum number of individual values used (rather than say 1 1, 3 2s and 74 5s).
Sorry, I did say at least, I meant a maximum of! I've been on it for hours now, think it is time for a...
I am writing a basic program using Java. The function is to break up any number the user inputs into smaller values, the catch is that these smaller values have a maximum usage and the overall result has to use the combination with the highest amount of values. I am figuring out the code just...