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.
To complete the task it's preferrable to run over the array only once (or twice if impossible) without array mutations. Otherwise you won't complete similar tasks
Thank you so much! I didnt know what was wrong with my code so I decided to look here. I certainly didnt know about the throw statement
seems it should be a 6 kyu for the Python version. perhaps more snags with other langs, e.g. JS sort instability? and so I take kyu levels with a grain of salt. for example, I come across challenges from time to time where Python fails to cut the mustard speed-wise
OK, one more kata and I go to sleep
not going to sleep for three hours
Sorry about that.. fixed now. :)
Didn't see the first restriction and my code does follow the second one. The body of the function
square
is clearly shorter than 25 characters.idk, i've been sitting for an hour, and it's an absolute random
•Only one function can be defined.
•The code has a length limit:
ok :D
boolean
Weird this 7kata is practically the same as this 4th - https://www.codewars.com/kata/5324945e2ece5e1f32000370
Those who solved this kata in 2022 gotta try that one above. Nice task for learning how to deal with potentially big integers
Come on... This is the signature of the function:
This function has obviously 3 parameters.
This kata is 6 years old and was solved 2,134 times in C++. Do you really think it's possible there's such an error in sample tests and nobody saw it before you?...
BTW, sample tests are the same as in other languages.
I don't think we are looking at the same thing. The cpp first two tests are the same with different outcomes. What third parameter are you referring to?
There's a third parameter...
Both are Lew, 10, 2 and Harry, 5, 4. Exactly the same
Tests are not the same.
Loading more items...