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.
I did mine like in the top rated example but I like this more.
I never thought of using an array like a placeholder for this. Awesome solution!
This should be the top solution its more effecient. Really long repetitive strings would bog the top one down.
This comment is hidden because it contains spoiler information about the solution
I like this one, clever use of reduce and ? operator
Gotta make the instructions a little more clear, it took me 3 times a long to even understand the problem. You want the longest (string + k consecutive strings) combined, but the description makes it sound like you want the longest STRING and then add k consecutive strings.
This comment is hidden because it contains spoiler information about the solution
Agreed its not very scalable; yours is much nicer
I see, thanks y'all!
Doesn't answer my questions, but thanks for the heads up.
This comment is hidden because it contains spoiler information about the solution