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.
fr
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.
(OP was referring to the initial code, which would not compile) Fixed.
the return statment should have a semi colon: (in java) INCREDABLY minor issue.
how?
You definitely can, and it seems that you did...
Why
this kata is so bad bruh delete this sh
This comment is hidden because it contains spoiler information about the solution
I used a Set, not the same way you did though
For some extrange reason, I thought the kata has to check if the number of instances is a PRIME number instead off ODD (realized when i saw the solutions from others), but somehow i passed the tests hahahahahahaha so don't trust my solution
nvm
Same
Ok for Python.
Loading more items...