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 solution is no longer valid.
Needle should be a string not an integer
Basically.
This comment is hidden because it contains spoiler information about the solution
like :)
Also, there are extra parentheses around the explode.
Use spoiler flag.
This comment is hidden because it contains spoiler information about the solution
And +10 to Gryffindor
consecutive spaces should be removed previously
I really like the use of recursion, but this code is hard to follow. I would never want this sort of function in a production environment for that reason.
+1 for cleverness
-2 for clarity
No. This is solution doesn't waiting for input consecutive space.
Please excuse me, English isn't my native language.
does it work for consecutive space?