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.
Please use spoiler flag next time, your post was visible in the homepage.
This comment is hidden because it contains spoiler information about the solution
Best solution here from a reality perspective, this kata feels like a introduction to writing your own programming language and you have the solution here that resembles that mostly. Great job!
So I had to add that code snippet in the end because for some reason, the splice method introduced white spaces at the end and before "/n". I don't know if that was a bug? If someone can pinpoint why that happend, I'd be glad!
The testing on this one is a bit broken as some tests equals to 'one second less than expected'
I'm unsure if the author has done some wrong calculations.