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.
I have tested my program, and the complex_2 test says that the output should be {a=1, b=0, d=1}, and my output is {a=1, b=0, c=1, d=1}, and that is absolutely imposible, because if there's no letter c it wouldn't had added it to the map, so it has to be a letter c on the test. Which it would be nice to see what tests the program does, to prove them in the IDE and find errors.
Sorry for my english, i'm not native and i don't know speak very well.
2,2 can only produce even numbers, so the largest value any whole number amount of those 2 coins cannot make is an infinite odd number, feel free to ask more questions ^^
i don't understand why coins(2, 2) should return -1, if the biggest combination that those numbers can't get is 1, becouse they can't reach the number one with an integer combination.
Please, how can you put a foreach with a "break"(return) inside, just use a while
This comment is hidden because it contains spoiler information about the solution