Ad
  • 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."

  • 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.