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
Nope.
This comment is hidden because it contains spoiler information about the solution
k = n
is a valid test case and the longest string would be the whole array joined. If that's not the case in some language, state which one it is so the author/translator/PU can fix that one. In javascript and Python that case works as expected.The random tests also includes a few cases where K=N.
The instructions should be changed to:
if n=0 or k>=n or k<=0 return "".
Can you share some resources why this is so?