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.
if n = 0 or k > n or k <= 0 return ""
I struggled with the description as well you have to find the longest character string you can make with k words but the words have to be already next to each other. So for
print(longest_consec(["zone", "abigail", "theta", "form", "libe", "zas", "theta", "abigail"], 2))
abigailtheta is the longest character word made of two consecutive words in the list. thetaabigail is the same length but abigailtheta comes first so thats the correct answer
Hope this helps :)
Never mind I had a print statement i used for debugging in my code which was printing out all the random test strings :)
My code works however i got a buffer error i assume because my code must be too ineffecient
This comment is hidden because it contains spoiler information about the solution