utility for sample tests and solution setup, test framework headers for sample tests and full tests.
Ive just completed the task in C++ and nothing seems broken at least to me.
I tried but it seems impossible to modify the tag, sorry!
No way. If I worked an extra day over someone, I want more money.
I would tag this puzzle instead of fundamentals tho.
And no random tests in Ruby, JS
nope, doesn't seem so, actually. I tried using p,P=15,20 for the random generator (updating the range) in js. doesn't pass either for 20 tests
This comment is hidden because it contains spoiler information about the solution
because it took me 1h instead of two days? ;)
but yeah, surely there is better/more interesting to do.
ok, centralizing here what's left to do about python specifically:
(don't forget the one below, and the suggestion about the inputs, for all languages)
OK, that solution is valid according to all tests, but [(2,3,15),(1,3,5),(1,4,25)] is better. And the difference between them is in the sum of amounts. I didn't try very hard to construct such an example, and couldn't do it, but apparently I just didn't try hard enough.
We'll keep that test.