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.
Approved.
You're mutating the input list. That was the reason why it failed. I've approved the fork below so tampering with it won't be a problem anymore.
Manually checked the log, solution is correct.
Random tests always fail with:
Python translation forked to prevent the user from tampering with the test data. See here
that was fun. thanks for kata
Are you sure of this?
if (arr.length === 1) return arr[0][0];
b
is constant in your code, you should be using the current ball position in your loop.This comment is hidden because it contains spoiler information about the solution
I had not even noticed there could be more than three cups in the other one. I sincerely doubt that makes it more difficult - my solution here and there are exactly the same. Change function name, Submit. That exactly.
There is nothing to be done now. If you had known, you should not have published in the first place, but we're past that and it got approved already ( maybe too soon ).
Don't sweat it, electrons aren't that expensive. Take good care of your kata and try not to publish duplicates in future ( which may be difficult because names are unreliable. FYI, base
-2
arithmetic is done in "SKRZAT" :P ).Done :)
Thanks for raising this, it completely wasn't my intention! With regards to them being 'exactly' the same the original is more difficult as they don't limit the amount of cups/shells to three. But you're right, is there something I should do ?
Yep. Exactly the same. Four years ago.
Oh well, it's been approved already.
Ruby and Python translations, please check and approve :-)
https://www.codewars.com/kata/546a3fea8a3502302a000cd2
Ok perfect, thankyou :)
I followed
for both translations :-)
Loading more items...