Scala Sample Test / Type Mismatch Error
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
L
Example: (Seq(9L), 9L), (Seq(6L, 9L, 21L), 9L), (Seq(1L, 21L, 55L), 3L)
Loading collection data...
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 theL
Example:
(Seq(9L), 9L),
(Seq(6L, 9L, 21L), 9L),
(Seq(1L, 21L, 55L), 3L)