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.
This comment is hidden because it contains spoiler information about the solution
72 codewarriors have solved it. Please check your code again :)
I also had the same issue when i modified the input array. The expected value for the test was the one for the modified array.
input: [27, 47, 2, 87, 12], i modified the input by shifting the first element: [47, 2, 87, 12]
got: ['+0', '+20', '-25', '+60', '-15']
expected: ['+0', '-45', '+40', '-35']
Is this the normal behaviour, or should the tests be modified to take this into account?
seems like the issue is with your @mstrfx. please check...
@mstrfx you are adding the plus onto all integers. You need to add only to the positive ones.
Thats weird...my tests run just fine for random...lets see if others have the same prob...
My mistake, fixed already and thanks for the feed :)
Still an issue in 3.4.3 (edit: in 2.7 too) :(I'm updating the
Test Cases
and description to round to 2 decimal places.Thanks for bringing this up.
I think it should work now. Looking forward to your feedback!
I believe I've solved the problem. Enjoy the kata now!
Thank you, I'll work on that as soon as possible.