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

  • Default User Avatar

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