Ad
  • Custom User Avatar

    what do i have to actually do in this code

    You can't ask for other people to give away the solution, you know? The task is to guess what the next Math::random call is going to return - how this can be done is for you figure out.

  • Custom User Avatar

    same here

  • Custom User Avatar

    passing an empty string will return an empty string

    If your solution doesn't work for empty strings, that's your problem. Not an issue.

  • Custom User Avatar

    Your code may be correct but is too slow to pass the whole tests. That's what indicates a time out (unless your code gets lost in an infinite loop).

  • Custom User Avatar

    You cannot run attempt tests in other idles. They are partially random. This kata requires some performance optimization, it's part of the challenge. It's impossible to help you without knowing more, we don't even know which language you're using.

  • Custom User Avatar

    Just print peopleInLine to see the inputed test.

    I had problems with that test as well. Printing the input helped me realise I had misunderstood the requirement.