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 you write a solution in python, you should consider slice instead of using s[-1].
However, it is just a temprary solution to avoid that error, so let me know if you got a better solution.
This comment is hidden because it contains spoiler information about the solution
Please mark your post as having spoiler content next time.
See the example in the description, the input is not in the error message, the first value is your wrong answer, the one with less spaces in it and the second one is the expected answer, with double spaces.
This is the test:
The error message is:
Your solution does not preserve adjacent spaces.