Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Some Scala final tests contain non-increasing sequences like the following:

    test("Sample 3") {
      assert(Kata.solution(List(97, 98, 99, 100, 101, 102, -7, -6, 14, 15, 16, 17,
        18, -46, -45, -44, -95, -74, 65, 66, 67, 68, 37, 38, 39, 40, 41, 42, 58, -31,
        -30, -29, -28, -27, -43, -42, -41, -40, -39, -38, -37, 52, 53, 54, 67, 68,
        69, 70, 71, 72, -48, -47, -46, -45, -44)) ===
        "97-102,-7,-6,14-18,-46--44,-95,-74,65-68,37-42,58,-31--27,-43--37,52-54,67-72,-48--44")
    }