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 kata is a duplicate to katas such as https://www.codewars.com/kata/57fece4108d102ea65000bf6.
Initial code should be
defn
, notdef
.To make it clear, you'd better put random tests in a separate scope (which is why the example i gave is named 'fixed', meaning
fixed tests
)And katas on CW usually do 100 times random tests.
Yes, that makes a whole lot more sense! Thanks again for your help.
Thanks! It's my first Kata so I don't know what I'm doing yet.
Test fixture does not contain any test structures like
Thus the result panel will only display
and no one will be able to pass the tests.
Sorry! This is my first attempted port. I will fix it and try again.
Sorry. The test cases are not a faithful port of the original Kata and there are no random tests.
https://github.com/Codewars/codewars.com/wiki/Kata-Translations#remarks-on-translating
Have you read the descriptions?
It seems like we are guaranteed to have exactly one different number (odd or even).