Ad
  • Default User Avatar

    ooh, my bad. I think we need to return the K most longest String and keep it index sequence the same as it be in the given Array.So that we can just randomly change the K.

  • Default User Avatar

    bro I try your solution on my array and K, the result doesn't matched the expecte result. arrayOf("thetaaaaaaa","zone", "abigail", "theta", "form", "libe", "zas", "abigailoooooo"),K: 2

    i get "zasabigailoooooo" instead of "thetaaaaaaaabigailoooooo"

    how can this pass the test? i'm so confused

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution