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.
Your solution returns wrong answer for inputs like
[3, 2, 2]
.Your solution has a bug, it is not a kata issue.
I have solved this kata in c# and initial test has passed...but when I (Attempt), I get an error says :
Test Failed
Expected: -1
But was: 5
I've tried my solution on VS code and it worked properly.
I don't know what's wrong!
I also want to know if the sample test written down the page is exactly what causes the error? cuz I tried this particular case in vs code and it passed successfully.