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 is N Log N time complexity. This task can be completed in N.
This is N Log N time complexity. This task can be completed in N.
"so that the stones in each pair of adjacent stones have different colours"
PAIR
noun
ADJACENT
adjective
This kata is too confusing. No idea what the goal is here.
Beautiful.
The description states:
"When provided with a number between 0-9, return it in words." Thus your condition does not fall within the range of inputs.
What if the user specifies -3 or a number greater than 9?
bored?
+1 clever for making me laugh.
Don't post code in discourse, it's forbidden.
There's no such thing as approving solutions.
This comment is hidden because it contains spoiler information about the solution
It should be noted that Side should be set to 0;
Based on the older comments on the discussion chain, it sounds like the test cases didn't originally match with the kata description (i.e. the random tests could test the solution with parameter value 0).
Why start the range at 0?
This comment is hidden because it contains spoiler information about the solution