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.
Any addition to the description is unnecessary, It's up to you to understand the requirements given and come up with an approach.
Any further corrections are based on the comparison you make with the results from the
test
/attempt
tests.TLDR: Solving on CW is TDD oriented.
closing.
There's a bug in your code.
I have problems too, but it seems different from you. I don't know if it's related.
Edit: Well, I don't think it is. I think your code needs some debugging, check input, output, analyze log messages... See there: https://docs.codewars.com/training/troubleshooting