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.
This solution is pure coding artistry! 🎨✨ It's crafted so well that it stands out as one of the best. I have to ask—are you a coding expert or what? Haha!😆🔥
you doing too much with this, i love it
The code has for in, but as a comment, that's why it still passes the test.
The author of kata probably added the check after people started solving kata the wrong way, before that it was possible to not add for. However, the solution would still get invalidated if the kata tests changed. No idea how it's still there honestly.
XD
lol
...And this kata is not about performance.
my bad, thx sir.
Please use spoiler flag next time. Your post was visible in the homepage.
it should use for in to pass this kata
This comment is hidden because it contains spoiler information about the solution
the code has the words
for
,break
andcontinue
in the commentfuture codewars tryhards should follow this format
You made my evening ! :D
Merry Christmas
Loading more items...