Ad
  • Custom User Avatar

    Order of points does not matter.

  • Default User Avatar

    I'm seeing a similar issue with failures related to order of array elements as well

  • Default User Avatar

    It says in the instructions that the order of the points can be arbitrary, however I'm getting e.g. this error from random tests: [[0, 0, 3], [0, 1, 2], [0, 2, 1], [0, 3, 0], [1, 0, 2], [1, 1, 1], [1, 2, 0], [2, 0, 1], [2, 1, 0], [3, 0, 0]] should equal [[3, 0, 0], [2, 1, 0], [1, 2, 0], [0, 3, 0], [2, 0, 1], [1, 1, 1], [0, 2, 1], [1, 0, 2], [0, 1, 2], [0, 0, 3]]. How should I order the points?

  • Default User Avatar

    I have the same problem with python. It seems my code is returning correct result, but it still fails, e.g. with random test [3, 19, 5, 12, -4, -4, 6, 9, 12] I get this : {'pos': [1, 3], 'peaks': [19, 12]} should equal {'pos': [1, 3, 7], 'peaks': [19, 12, 9]}

    My code does not return arr[7] (which is 9), because it not a peak - but the error message says it should? Or is there something in the instructions that I'm missing?