This solution is not correct; it is made assuming that the clerk can exchange the receiving 50 and 100$ bills into 25$ bills instantly, which the description clearly states that he can't. It just passes the tests because they don't check for bill amounts, just for the final result. It probably wasn't coded for this, but it cheats the tests. The tests need a revision, and this answer should be removed.
This comment is hidden because it contains spoiler information about the solution
Oh I'm sorry then :/ I'll be more careful from now on. Thanks for the info
I'm sorry I'm new to the comment section :S
Is it possible to view the solutions' comments before having completed the Kata?
This comment is hidden because it contains spoiler information about the solution
Have you edited the test cases? That should be the only difference between CodeWars and other tools.
Oh come on that is dirty you hacked through half the problem with the main diagonal symmetry from the other problem!
Not saying that's not a valid option, just mad at myself for not noticing earlier. Clever.
This solution is not correct; it is made assuming that the clerk can exchange the receiving 50 and 100$ bills into 25$ bills instantly, which the description clearly states that he can't. It just passes the tests because they don't check for bill amounts, just for the final result. It probably wasn't coded for this, but it cheats the tests. The tests need a revision, and this answer should be removed.