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.
No where does it say the ages need to be positive.... ;-).
Use spoiler flag next time please.
This comment is hidden because it contains spoiler information about the solution
Who votes for best practice?
Code wars WebDevs, please implement the "Unreadeable" button.
🚌 :p
I was pretty confused why many are using bitwise here, not the arithemetic operators like i did. Now Its pretty clear to me.
So, Thank you!
enum
would be a more sensible return typestatic
Looks preety, concise, speedy, and... unreadable anyway.
Custom assertion messages which present inputs on failue would be nice.
Both arguments must be strictly positive.
It could be enforced by kata author, but it isn't so you'll get all different type of solutions.
it's still an empty array whether it's
array[] = {}
orarray[] = {{}}
I didn't understand what does that mean
I think sometimes empty arrays can exist as test samples in C, so, because all versions of C on CW work on Clang, empty arrays can be valid here too.
I made a fork fixing the error tests (about empty {{}} part btw: https://www.codewars.com/kumite/61d5fbba9e1e88003840f2e7?sel=625057d7629507b65303e583
Rejected because the changes match with the current description. This could only create merge conflict :)
Loading more items...