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.
hahahhaha this is crazy simple solution
i have been searching and calculating for ages
Why someone thinks this is a best practice? If you have milion strings to join, and k=1000, than this will skyrocket with inefficiency.
return can be omitted
I don't even know how i missed it. Hahaha!
damn. I wanted to write like this... But i thought it was too simple
I can't believe i missed that. Well done !
Your if statement is acting as a guard clause. Would read better if you used guard since those are expected to bail.
Loved your solution!!! Really clever.
Why couldn't I think of this solution?
wtf
Works!:)
Typo corrected, should work now, please tell me.
This comment is hidden because it contains spoiler information about the solution