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.
Nope, based on solution length, logic generation and intuition of the task, it is a perfect candidate for 7kyu. You may solve more 7kyus or start off from 8kyus if you do not feel comfortable with such problems, closing!
Please use
spoiler flag
when posting your code. And also use proper code formatting (triple backticks to surround your code lines) as it is visible from the dashboard. We could only help you if you post your code properly with code formatting as your latest code submission is different from the one you've posted and the current one is impossible to read or debug.OTOH, Your latest code seems to be a copy of someone's else or coming from an automated tool, which is a red sign !!!
You need to read on how to troubleshoot your solution and the Code of Conduct
There may or may not be tests for spaces, but your code should handle any characters. If your code can't handle spaces, then you're on the wrong track.