Ad
  • Custom User Avatar

    Help us help you. Tell us what language you're having these problems with.

    The JavaScript translation meanwhile has been fixed to allow for floating point inaccuracy.

    Closing.

  • Default User Avatar

    Print the input.

  • Custom User Avatar

    Your code is sorting the strings in ascending order of length, and then joining k of them from the back, that's wrong. Your code should obtain the longest string made of k consecutive strings from the array that is the longest (and if there is more than one with the longest length, then your code should return the first one).

  • Custom User Avatar

    Why are you sorting? The strings must be consecutive.