• Custom User Avatar

    Hi, with Python I have trouble with some random test, for instance with this landscape:
    c tHu6
    Yd7+f
    *

    my solution fail:
    'cAtHu6\n Yd7+f\n*'

    kata response should equal:
    'c\n \n*'

    I don't understand why.
    Am I miss something ?

  • Custom User Avatar

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

  • Custom User Avatar

    random tests should be more complex, they can be solved with a non optimal solution unlike the last two sample tests

  • Custom User Avatar

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

  • Custom User Avatar

    elegant solution, but does not work for some cases

    for example : "(12x) 456-7x90"

  • Custom User Avatar

    Perhaps it should be made clear that accented characters don't need to be encrypted,
    or test encryption with accented characters so that we can understand it.

    I had trouble with the French sentences,
    because in these cases the encrypted message is not checked,
    we just test our ability to decrypt what we have just encrypted.

    As these were the last two tests to fail while all the others passed,
    I didn't realise that it was my encryption that was wrong.

    I finally solved the problem by using a global variable dictionary,
    which is not a good method. :)

    Translated with www.DeepL.com/Translator (free version)

  • Custom User Avatar

    there is a mistake:
    "count = Counter(cars)" should not be in the "for index" loop.

    I don't know why, but this solution works well althought it can happend that random test do not pass.

  • Custom User Avatar

    I just completed it in python, I don't think I have done it in a refined way, but it's work fine for me.