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.
@Nova-Striker, shifting
eu
by 10 characters will still returneu
.This comment is hidden because it contains spoiler information about the solution
That is understood , but why the first word
eu
did not becomeue
?In step 2, you rotate the entire string (sans spaces) by
10
characters. In step 4, you do the same but for each individual word; here, "word" means a group of consecutive non-space characters.As an example, in step 3 we see the last word is
tinventth
. If you rotate by10
characters, you gethtinventt
.This Kata looks very interesting and I am eager to start on it, however I do not understand what step 4 from encode requires.
I looked at the example in the description but I still can't understand it.
Can you please explain?
Superb, it baffled me how efficient your solution is when I used timeit to to see how fast it runs. Looks like you have earned another follower, I bookmarked your blog.