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.
No idea, sometimes it's because of logs misreading, but not in this case, and sometimes it can be because you use a global var and it keeps its value between tests, read this and see if it helps: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution I can only see the tests and not your code so I can't see the whole picture here.
Then why, when submitting an attempt, am I receiving for one or both of those cases of the first test:
expected:<0> but was:<-1>
Both of those tests expect
-1
in Java.This comment is hidden because it contains spoiler information about the solution