Ad
  • Custom User Avatar

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

  • Custom User Avatar

    Scala Sample Test / Type Mismatch Error

    If the numbers within the Seq() do not contain the L to state the numbers are long. Then the compiler will throw a Type Mismatch Error. Therefore you have to can bypass the sample tests by submitting. Or you can change sample test by adding the L

    Example:
    (Seq(9L), 9L),
    (Seq(6L, 9L, 21L), 9L),
    (Seq(1L, 21L, 55L), 3L)