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.
Test Failed
Expected "(479,487)", but got "(449,457)"
Input
g = 8
m = 404
n = 4155
I have checked and i'm pretty sure my answer is correct, so is it my fault or do the test cases have something wrong?
Issue resolved (so it can be published)
I think you missed the digits summing up to at least 25.
I see your issue here, we made this kata as a little validation for some of the rules of the original game plus some more created by us. We wanted to make no changes to the original rules if it was possible, and we thought of that possibility, but didn't see it as a strong issue. Do you think is a big problem and we should change it?
[Java] At least in the java fixed test the case where the pattern array is empty is not contemplated. So when you attempt the random tests you may pass the kata without checking that condition.
Thanks for the help. The test are now changed so they will pass the lowest date possible, being 2100-10-01, which adds up to 5.
Related to the issue below, and a more serious one: the kata is impossible to pass at certain dates due to the same reason causing fixed tests that expect total digit sum to be at least 25 to fail. If
YYYYMMDD
's digit sum is less than 10 (such as2030-01-12
) this will happen.It's very easy to test this with
instead of
Okay, an actual issue this time: containing today's date in
YYYYMMDD
and digit sum being at least 25 is the same condition for certain dates. For example, the date20240929
adds up to28
, which means if it doesn't exist in the password then the password is invalid, and if it exists then you don't need to check digit sum anymore. So during certain dates the kata will become easier, which is not very future-proof.Oh okay, I thought the date contains letters.
As it's mentioned in the description the today date has the format YYYYMMDD, which all are numbers.
I don't understand your issue.
Can you explain yourself?
Loading more items...