Problem 42996. what can you get for exactly amount of money
Solution Stats
Problem Comments
-
3 Comments
Please add more than one test case. Otherwise, the problem can be obviated by simply hard-coding solutions. You mention that with some data sets there could be more than one solution. Well, please put in the time and effort to develop a suitable test suite with such test cases included. Three or four test cases should be a minimum.
A good problem, but it desperately needs more test cases. Sadly, intlinprog is not an acceptable solution method.
This is a nice problem, I encourage you to extend it with additional test cases. Also it is unclear what format you would expect the output to be when there are multiple solutions: multiple outputs? a cell array?
Solution Comments
-
1 Comment
with given test cases it is too tempting to cheat
-
1 Comment
It doesn't generate correct results but passed test suites. Why?
-
1 Comment
Very similar to what I was trying to do, but in about a third of the size...
Problem Recent Solvers82
Suggested Problems
-
Back to basics 9 - Indexed References
412 Solvers
-
366 Solvers
-
Find the largest value in the 3D matrix
1232 Solvers
-
Find a subset that divides the vector into equal halves
365 Solvers
-
Convert given decimal number to binary number.
1288 Solvers
More from this Author12
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!