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.
sorry you didnt like it. maybe do a different one. definitely don't leave an unnecessarily rude comment though.
why?
This comment is hidden because it contains spoiler information about the solution
Seems to work now
It has been fixed now. There will be no more random cases in C# with "-1" as the coeficent. It will show "-".
What language were you using? C#? It states in the description that if a = -1 a '-' will be placed, so this shouldn't happen. I will look at it.
This comment is hidden because it contains spoiler information about the solution
I disagree. Why do you think so?
Perhaps failing the test and printing something out will help that.
Yes,but it would be less confusing if when someone does try to modify it, as it seems from the discourse that lots of people do, the test script should either suggest to make sure the array is not modified or fail the test in which the array was modified. The function's execution in one test should not affect the input that is given to later tests, regardless of whether or not the description was read carefully.
Modifying the array input causes the input for later test cases to not be what is expected for several of the tests. While it may be bad practice to destructively modify array inputs within a function, the test cases should be written so that it does not cause the test script to fail. This is still a really fun kata though. Thanks for making it.
This comment is hidden because it contains spoiler information about the solution
Most solutions use string math. They simply write an algorithm that multiplies numbers the same way you would do it by hand.
My python skills are lacking but I've been meaning to learn for a while now. I'll see what I can do. Check back in a few days.
Thank you for pointing that out. The function now gets passed a copy of the array instead of the array itself. Problem solved.
Loading more items...