Ad
  • Default User Avatar

    .

  • Default User Avatar
  • Custom User Avatar

    "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.

  • Custom User Avatar

    Yea, it's taking a while to understand what to fully expect from the output.

  • Custom User Avatar

    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.

  • Default User Avatar

    I like paul's suggestion a lot to make things more explicit and clear

  • Custom User Avatar

    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.

  • Default User Avatar

    I will think to your proposition but it is rather a "suggestion" than an issue:-)
    Thanks for your feedback!

  • Custom User Avatar

    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."

  • Custom User Avatar

    For Ruby, the "expect" test in the provided Tests has syntax errors.

  • Custom User Avatar

    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.