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.
If
num
== 0 random test expect get 1 copy of word, as ifnum
was 1. Kate description say nothing about itapproved
Approved by someone
Approved
Approved
Approved
Approved (it's better to mark this kind of message with the
Suggestion
flag to give them more visibility).Approved, thanks
So, eventually, my bad, I guess you have the best solution to this kata!
I learnt something today! What's the first number (
9123720
)?Hm... ok, you are right! Now I am curious to compare the efficiency of this code with an
O(n)
solution that splits the string, because this code seems a bit convoluted to me.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution