Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Oh. Wow. Well, I guess it's fine, since a solution that doesn't use that module is around the same length. I can't change my translation anymore, but if BattleRattle is against those functions he can disable the module with
hiding [Module "…"]
.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Thanks for pointing this issue. Fixed.
In Python, the 11th test case seems to require that
count_change(0, coins) == 0
. IMHO, this is wrong: there is exactly one way to give change equal to 0: don't give any coins. I think the test case should be fixed, or the instructions should mention this explicitly.In Haskell, this test case is either missing or different, because the solution that I consider as correct worked there.
Fixed
The "Your test cases" have the function as countChange, while the stub and the Kata test cases use count_change.