Ad
  • Custom User Avatar

    Could you explain what does strarr[index:index +k] do

  • Custom User Avatar

    No, because that's not what you have to do.

    Your task is to return the first longest string consisting of k consecutive strings taken in the array.

    You have to return the first one if there are more than one with the same length.