Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
That's actually the first fixed test.
I can't see any errors.
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 yourfilter
sometimes crashes), but I can't reproduce your original error :(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.