5 kyu

Score a Cross Country World Championship Race

44hpr
Description
Loading description...
Sorting
Puzzles
  • Please sign in or sign up to leave a comment.
  • JohanWiltink Avatar

    Inputs are not specified to be in order of resultRank, but some solutions depend on this.

    Needs additional testing. ( Or specification that input will be in that order. But that'd be a cop-out. :P )

    • hpr Avatar

      Thanks, I added a note guaranteeing that the input array will contain all runners in their order of finish excepting null resultRanks, which will always be at the end if present! I do this to match the example inputs on the World Athletics site here, not trying to cop-out!

      Issue marked resolved by hpr 4 years ago
  • B1ts Avatar

    Random tests are vulnerable to input modification. Please compute the expected value first.

  • Voile Avatar

    You should add random tests ;-)

  • Kacarott Avatar

    Initial solution is still the default one

    • hpr Avatar

      Thanks, fixed!

      Issue marked resolved by hpr 4 years ago
    • JohanWiltink Avatar

      No, it isn't ( yes, I refreshed ).

      Initial solution should not have function twoOldestAges; it should have scoreWorldXC ( with an appropriately named argument ).

    • hpr Avatar

      @JohanWiltink My mistake, I just tested and the correct initial solution is displaying now!