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.
OP solved the task, closing
Same here too
Same here!
well, (just for starters), while I don't speak swift, I would suggest a method that only iterates the array once.
This comment is hidden because it contains spoiler information about the solution
I tried this very same solution and it kept timing out on me, forcing me to use a for-in loop to do it in one pass
This comment is hidden because it contains spoiler information about the solution
Kata works in Swift, you're misunderstanding what to do, it's not the k longest strings from strarray you have to return
First is there in case you can get more than one of the same length.
This kata appears broken in Swift, I'm returning the (k) longest strings from strarray as a single string, and am passing all sample tests, but pass 0 when I click attempt