Ad
  • Default User Avatar

    That's actually the first fixed test.

  • Default User Avatar

    I can't see any errors.

  • Custom User Avatar

    I can't get your solution to fail with the error you mentioned. It still fails for some inputs with IOOB error (the a(1) in your filter sometimes crashes), but I can't reproduce your original error :(

  • Custom User Avatar

    For the inputs you showed, the correct answer is indeed (449, 457).

    I haven't solved it in Scala, so I can't tell what the problem is. It is possible that Expected and Actual values are reversed (make sure to print what you're returning to make sure this isn't the case). So far 143 users completed it in Scala, so I doubt the tests could be wrong.