Ad
  • Custom User Avatar

    How does [0, 5, 10, 10.5, 4.5] == 30??
    I don't understand the scoring here, it should either be 20 or 25, depending on the rounding:

    0 = 10 pts
    5 = 5 pts
    10 = 0
    10.5 := 11 = 0
    4.5 := 5 = 5 pts

    10 + 5 + 5 = 20

    Or, if I were to not round up/down and only use the integer value, the score is still wrong:
    0 = 10 pts
    5 = 5 pts
    10 = 0 pts
    10.5 := 10 = 0 pts
    4.5 := 4 = 10 pts

    10 + 5 + 10 = 25

  • Custom User Avatar

    Hehe, Your welcome :) And thanks to you for the update!

  • Custom User Avatar

    Okay this one was fun up until the 'Bananas from bahamas' test case. That one really just threw the whole algorithm out the water. The initial test case does not AT ALL make clear what the intention is. That test case is more about can you mash the two inputs together in order to form the output. It's not about going in order. That 'bananas' test case should be the one shown on the instructions, imho.