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.
I don't think the solver should be in the position that they end up not knowing how their solution is called. "Your code should handle THIS" and then doesn't say what "THIS" is. That's weird, and something about that is an issue with codewars in general.
But the
issue
tag comes with burden of proof and I didn't want that tag to be useful in debugging your code when replying within a few minutes.You are very likely printing multiple test cases.
I'm gonna go out on a limb and guess that whatever you're using to print the input is rather half-assed and that what you're showing ain't it.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Well, seems you got it after all! Hope you had fun :)
When you are looking for specifically easy challenges to get familiar with Codewars platform, you can use the search page, filter for only white kata, and sort by "Most completed", like here.
It's not mislabeled. Perhaps this kata is just a bit harder for you personally than 7 kyu. I suggest you try other kata's and come back to this one after some time.
Bug fixing challenges are a bit specific kind of task. It is ranked as 7 kyu, because the final code with all bugs removed is fairly simple. But finding the bugs, getting through the specs, debugging the cause of failures, this can indeed be challenging, especially for people not experienced with working with a non-working (huh) code.
Remember that what you need to fix is always the "Solution" snippet. You can use the "Example tests" code for your own convenience and testing, but changing it will not bring you closer to solution. And you can always come to Codewars Discord for help with any challenge, not only this one.