Ad
  • Custom User Avatar

    Hum can I see the random test code

    You can print the input to the console if that's what you mean.

    I can't get any output and check what went wrong because of the limited buffer

    You should get logs from many tests before you run out of buffer space. Unless you are storing all the names somewhere (emulating the queue) and printing it out at some point - such algorithm will not work at all, and if you're using it, drop the idea and think how you can solve this task by using math.

  • Custom User Avatar

    Hum can I see the random test code? I have passed the fixed test but always have a failure doing the random test. Additionally, I can't get any output and check what went wrong because of the limited buffer.

  • Custom User Avatar

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

  • Custom User Avatar

    Oh that explains... thanks!

  • Custom User Avatar

    It's already there:
    Your task is to return the first longest string consisting of k consecutive strings taken in the array.

  • Custom User Avatar

    Should specify what to do when two words have the same length.
    The 4th test has this issue.