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.
This comment is hidden because it contains spoiler information about the solution
So I'm not sure what's going wrong, because in theory this code should work fine. Normally debugging isn't an issue, but as you can't actually check the weights of the bags for each test, it's proving hard to figure out what's going wrong. Any help or suggestions would be great.
It negates formatting because you forgot a newline before your code. Even better, use fenced code snippets, e.g.
That being said, this isn't an issue, but a question. You're aware that you return a string, while the kata expects an integer?
Same problem here with JS. Based on the ODD/EVEN requirments. I even noticed that there's a problem in the description itself.
"WeIrD StRiNg CaSe"
should be
"WeIrD StRiNg cAsE"
This comment is hidden because it contains spoiler information about the solution