If you're going to answer the question he should have asked instead of the one he did,
The code I supplied answered the exact problem as asked.
The reason the answer isn't your solution of "(E C B adds up nicely to 25)", is because that sums to a value of only $53; when there are other solutions that sum to higher values.
The problem is not a "lack of imagination"; but ...
In reply to Re^5: maximizing value from a set of objects
by BrowserUk
in thread maximizing value from a set of objects
by BioPete
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |