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 be considerate and close your issue when you found the mistake in your code ;-)
Your code is really hard to follow. Please format it as shown here: https://docs.codewars.com/references/markdown/#code-block
Sample tests generally contain only a few tests, and when you hit Attempt, there are more tests with edge cases, etc. (and also random tests)
Given that there's ~1000 completions in C++, it's very likely that tests are correct. Could you show a test case that you think is incorrect?
Please explore https://docs.codewars.com/training/troubleshooting for more info.