If num == 0 random test expect get 1 copy of word, as if num was 1. Kate description say nothing about it
num
approved
Approved by someone
Approved
Approved (it's better to mark this kind of message with the Suggestion flag to give them more visibility).
Suggestion
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)?
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.
O(n)
This comment is hidden because it contains spoiler information about the solution
Loading collection data...
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