Ad
  • Default User Avatar

    I checked the test cases in de Haskell translation.
    The following is in de code:

    shouldBe PickedPeaks {pos = [2,4], peaks = [3,2]}

    Therefor I can't reproduce the error.

  • Default User Avatar

    Not sure what language you did it in. In C++ this tests gives the expected result ( [2,1,3,1,2,2,2,2,1] => {pos = [2,4], peaks = [3,2]} )