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.
Resolved in latest fork. Only took 2 years!
Yes, I ran my code many times again on attempt tests and I could never catch an error.
Yes, I believe it's the same issue B1ts reported. My guess would be that there's a bug in the random test generator, because it appears that some random tests expect the wrong answer. However, if that's the case then I don't really get why some people's code is not impacted. Have you tried submitting your code several times (about 10-15)? It may just be that you haven't run enough random tests to find the faulty ones.
Hi. Thanks for this detailed presentation. I didn't analyze it deeply, but could this be the same problem as the issue reported by B1ts? Several users reported errors in JS tests. My code (and others, I guess), doesn't seem to be impacted, so it is possible tests need to be seriously reviewed.
This comment is hidden because it contains spoiler information about the solution
Possible duplicate of issues below, but reference solution might have a hole in it. Also, tests are vulnerable to input modification.
Posting an example of a failing test below:
This is a non-issue. Please don't raise an issue, if you can't specify the exact problem.
Please say which language you're using and provide a clear example of a bad test when raising an issue, rather that supposing tests are bad without a proof. It is also reasonnable to suppose your code is bad and passes sometimes tests because some cases your code doesn't handle do not always appear in random tests.
Some random cases are wrong; I submitted the same code several times and the 3rd time it passed all the tests, and I can't find any obvious mistakes in it.
You can print whatever you want using
console.log
.This comment is hidden because it contains spoiler information about the solution