Ad
  • Default User Avatar

    I struggled with the description as well you have to find the longest character string you can make with k words but the words have to be already next to each other. So for

    print(longest_consec(["zone", "abigail", "theta", "form", "libe", "zas", "theta", "abigail"], 2))

    abigailtheta is the longest character word made of two consecutive words in the list. thetaabigail is the same length but abigailtheta comes first so thats the correct answer

    Hope this helps :)