Apr 11, 2014 at 6:28pm UTC
I have a set price within an array, I have to find the best combination of them, which do not exceed a certain amount. Can you give me a hand.
Apr 11, 2014 at 6:38pm UTC
If I got your question right, then sort the array and take the minimum n elements. r
Topic archived. No new replies allowed.
General C++ Programming
© cplusplus.com, 2000-2015 - All rights reserved -
Spotted an error? contact us