Ad
  • Custom User Avatar

    It sets the 'case-insensitive' flag for the remaining pattern

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    How is this library not banned on codewars?!

  • Custom User Avatar

    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 or testTrickyQueues could really help. However, analyzing the test cases and figuring this out was kind of an interesting part too, so ...

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    The Java solution setup is missing

    import java.util.List;

    which is used in the method signature.