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.
Haskell fork that adds random tests and also updates fixed tests to show inputs upon failure.
Thanks.
This comment is hidden because it contains spoiler information about the solution
This one should fix it
The first array is your output and the second array is the expected output. If you want to see the input that is causing your solution to fail, you should print it yourself. See https://docs.codewars.com/training/troubleshooting#print-input.
In the future, please use the
Question
label when asking for help. See https://docs.codewars.com/training/troubleshooting#post-discourse.Hi,
I failed this test :
expected [ -41, 10, -41, 18, -29, 26, -21, -17, -21, -17, -28, -46, -20, -29, -17, -15, 12, 16, 3, 3, -15, -17, -40, 3 ] to deeply equal [ -41, 10, -29, 18, -21, 26, -17, -17, -15, 3, -28, -46, -20, 3, 3, 9, 12, 16, 11, 29, 35, 39, -40, 41 ]
It looks like the first input array contains extra -45 and second (expected output) array contains 17 instead of this -45
thought it was a weird bug so I had a look. my findings: groovy % is rem not mod
See the issue above.
Groovy: random tests reference solution seems wrong.
For the 2nd element (first odd number), -43 seems smaller than -37.
Approved
Wow, this one made me THINK. Very nice though. Felt awesome when I solved it.
Good exercise, bad description.
I think a blind man would write a better instruction description than it is now
Improved Groovy translation
The translation is problematic
No sample tests
No random tests
No assertion messages
No
static
method and non-specific data typesIt appears the translator was utilizing a template from production code to write the translation, such code may not be applicable in the context of CW and can be hard to maintain
You may reject it and fork a new one if you wish ^^
Loading more items...