Ad
  • Default User Avatar

    CW does that all the time, it just logs you out.

  • Custom User Avatar

    @calvinjku - Point taken. I added the word "last" so it now says "The missing rider is then safely escorted back to the station he last came from"

  • Default User Avatar

    Nevermind my post, I thought there was something missing about the backtracking, but I checked again, and found that it is indeed clear what is meant!

  • Custom User Avatar

    This is extremely confusing. Here's what it says in the description: the missing rider is then safely escorted back to "the station where he came from." If he were to be escorted back to Station 5, it should say something like "escorted to the last Station he has passed."

  • Default User Avatar

    Yep, thank you :)
    It didn't occur to me to print stuff on Codewars.. : P
    Thanks for being friendly telling a newcomer a really basic thing.

  • Default User Avatar

    He gets lost between 5 and 6, I think going back to 4 might be the problem.

  • Custom User Avatar

    Need some help clarifying this kata.

    In the case of this riders([21, 35, 28, 18, 13, 23, 45], 6), here's my reasoning:

    1. Rider 1 starts from Station 1 and gets to Station 4. (21 + 35 + 28 = 84)
    2. Rider 2 starts from Station 4 and wanders off somewhere between Station 5 and Station 6. (> 18)
    3. Rider 3 from Station 6 starts looking for Rider 2 and found him somewhere between Station 5 and Staiton 6, and then escorts Rider 2 back to Station 4. (18 + 13 = 31)
    4. Rider 3 starts from Station 4 and gets as far as Station 7. ((31) + 18 + 13 + 23 = 85)
    5. Rider 4 starts from Station 7 and gets to the end. (45)

    So we need 4 riders in total. But the test case says 3. What did I get wrong?

  • Custom User Avatar

    Passed all tests but the Attemp button doesn't become Submit for some reason.