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.
It sets the 'case-insensitive' flag for the remaining pattern
This comment is hidden because it contains spoiler information about the solution
How is this library not banned on codewars?!
I really liked this one, but I think the description could use a little more "redundancy". I mean it's precise (i.e. it describes the problem completely) but I had a hard time figuring out some details. Just a little explained example, e.g. for
testDownAndDown
ortestTrickyQueues
could really help. However, analyzing the test cases and figuring this out was kind of an interesting part too, so ...You're (hehe) actually right about this one, but I think this concerns almost all other solutions as well, since it was not specified in the kata description that contractions should be respected. Also, regarding the kata rank, I suppose that it was not intended either. Translating "you're" to "your sister is" would require a much more complex regex/algorithm.
I agree, totally frustrating ... I've spent way more time on the unicode thing than on the algorithm, because this was the first time I've encountered unicode in python.
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.
Maybe because it's not a valid solution regarding the task? It is not checking whether the double is of the same digits as the triple. Unfortunately there are no hardcoded test cases for this and it's quite rare that it appears in a random test case.
The Java solution setup is missing
import java.util.List;
which is used in the method signature.