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.
.
Dup
"First" and "longest" are superlatives that do not necessarily reflect the same element in a sequence.
After some consideration, I believe the confusion arises from a very common unawareness of how a superlative can apply to more than one element. However, to more easily interpret it this way, there has to be a plural somewhere.
For that reason, "first longest string" is easily (mis)interpreted to mean "the first string longer than any preencountered string", because there is no hint of plurality.
Hence, I think the criteria "first" and "longest" are confusing and in need of qualifiers, i.e. "first string among those that are the longest length", which is much harder to misinterpret.
Yea, it's taking a while to understand what to fully expect from the output.
The also felt that the requirements for this are definitely very unclear. I had to look at the desired output quite a few times to figure out what was really being asked.
I like paul's suggestion a lot to make things more explicit and clear
The instructions aren't complete for Java. It isn't clear that you have to create your own dictionary for Java. Please provide the dictionary or improve the instructions.
I will think to your proposition but it is rather a "suggestion" than an issue:-)
Thanks for your feedback!
The instruction wording is challenging to understand. Perhaps instead of "Your task is to return the first longest string consisting of k consecutive strings taken in the array." it would be better to say "Your task is to return the longest string consisting of k consecutive string taken from the array. If there is a tie for longest string, return the first one."
For Ruby, the "expect" test in the provided Tests has syntax errors.
The instructions could be clarified to include that spaces in the original should be replaced with underscore. Or, leave the spaces issue alone and ask for a String[] as the result.