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.
I know, this kata doesnt explain where the spaces need to be. just essentially says keep the spaces, not keep the damn index of the spaces.
the spaces are kept at the same index
at first i also thought about that too..but the whole idea behind it was to reverse the string, also the quantity of word in the sentence still remained
Got it! Made a silly mistake :P
Ah, okay, got it.
Reread the instructions. Sorry! :D
In python, most (!) of the test case solutions also contain the random space shifts already mentioned...
In python, the initial test cases are getting solved, but not the later 199 tests. Not able to determine why it's failing.
What about fixing your broken test though?
Imagine not being able to create a correct problem with fake test assertions and then acting all entitled when someone takes the time to explain what's wrong with your 2IQ kata. XD
This comment is hidden because it contains spoiler information about the solution
The test is broken. It says it wants string reversal, with spaces if some included. Instead if changes the spaces of place in a random and unpredictibale way. For example your code rocks becomes skco redocr ouy which makes no fucking sense
look for recursive functions