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 comment is hidden because it contains spoiler information about the solution
Oh, you're right! Apologies
Faster, less memory solution: https://www.codewars.com/kata/5b1b27c8f60e99a467000041/solutions
uses one loop, no objects.
This comment is hidden because it contains spoiler information about the solution
yeah, that's a good point.
I've started to comment my code and even leave in console.logs.
The reason I left them out was to get the code as succinct as possible, but that's just for pride.
way too complicated for the top answer to this tricky kata! I'm pretty proud of mine.
Oh right, my bad... even before that block there's this:
Should I delete this thread?
I wrote a solution, and it passed the initial tests, but failed on some of the attempts. I wasn''t about to look at some of the problematic parameters because they're insanely long, but fortunately I figured out why: Each of the arrays may have several "longest" strings. The tests only want the first potential answer.
My third sample test is failing too and I'm not sure why.
🤦🏻♂️
No because as it says in the kata description:
cycle(22) = -1 since 1/22 ~ 0.0 45 45 45 45 ...
that first zero means it doesn't qualify.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...