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.
Description should be language-agnostic
I created a Rust translation, please take a look!
I made a Rust translation, please take a look!
Please move calls of the user solution to within the
it
-block containing the associated actual tests. This is doubtlessly documented somewhere, but I don't know exactly where. See this fork. ( theDiff
tab is useful! )Not sure how you feel about solutions like mine, perhaps some larger tests are warranted?
you could enlarge a bit the possible ranges for the random cases (not too much, otherwise you could get troubles about the number of valid cases)
( JS, possibly others )
Do not rely on random tests only. Have fixed tests for any edge cases you can think of, and keep an eye out for ones that you didn't immediately think of ( which random tests might generate for you or for other solvers, and which you can then add as fixed tests ). ( What is and is not an edge case may differ for different solutions. )
Also, use test headers instead of logging text directly to the console.
CW has enough straight up map / filter / reduce kata ( with completely artificial transformation to make it worse ). You may have already noticed the general sentiment from the satisfaction rating.
Read available documentation, and, when the urge to create a kata strikes you, ask yourself not what CodeWars can do for you, but what you can do for CodeWars. Please create interesting kata.