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.
Someone gets paid by the line!
ooh, my bad. I think we need to return the K most longest String and keep it index sequence the same as it be in the given Array.So that we can just randomly change the K.
thetaaaaaaa and abigailoooooo aren't consecutive in the array.
bro I try your solution on my array and K, the result doesn't matched the expecte result. arrayOf("thetaaaaaaa","zone", "abigail", "theta", "form", "libe", "zas", "abigailoooooo"),K: 2
i get "zasabigailoooooo" instead of "thetaaaaaaaabigailoooooo"
how can this pass the test? i'm so confused
what
Sorry that is not best practices, there is a formular for this problem, which is much more efficient.
Needlessly complicated
I think the (array.first()..array.last()) - is a CharRange from the alphabet, so if the "it" is not in it its the missing letter. Damn thats cool
Out of curiosity, could you explain how this works?
You're right!
I think you weren't supposed to change the 'function signature'.
Мужик!
You are making your life really really hard with this approach of mutable char arrays... not really recommended!
I don't even understand why you'd need this kind of code. It's unreadable and invokes a lot of unnecessary concepts.
Awesome…!
Loading more items...