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.
Right... basically every solution that's using the "+111" or "i * 111" hack would miss 000.
Test cases can't be edited anymore, more than 500 people have completed it :( Thanks for pointing out missing test case, would have loved to add it.
I was about to open an issue, too, but I think I meant the same, so I'll just comment here:
The hardcoded test cases should include something like:
TripleDouble(111L, 22L)
, which should return 0, because the digit is not the same in the triple and double.Although there are random test cases, they do not necessarily cover this case and some incorrect solutions pass.
You're printing 0 instead of returning it
In my Python console triple_double(1222345, 12345) returns 0 but it fails on here. Any reason why?
None of the default test cases checks whether a different triple and double number passes a 0
Incorrect solution since I didn't check whether the found numbers were the same...