Ad
  • Custom User Avatar

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

  • Default User Avatar

    OK.

  • Default User Avatar

    I opened a private channel. You should see it on the left panel: "ALL CONVERSATIONS".

  • Default User Avatar

    You can go to https://gitter.im/Codewars/codewars.com and try to open a private channel.

  • Custom User Avatar

    Sorry, I didn't have time to check it earlier. Anyway, your d1 is missing mappings in some cases.

    Here is the d1 from one of your failures:
    {'y': 'w3', 'v': 'm10', 'u': 'm9', 'z': 'z1', 'p': 'm4', 'w': 'w1', 't': 'm8', 'm': 'm1', 's': 'm7', 'x': 'w2', 'o': 'm3', 'k': 'k1', 'n': 'm2', 'l': 'l1', 'q': 'm5', 'r': 'm6'}
    And your code tries to map a b from it.

    Just add print(d1) to your code and you'll see on your own eyes:

            j+=1
        print (d1)
        for ch in message:
            st1+=d1[ch]
        return st1
    

    Good luck with fixing it!

  • Default User Avatar

    A few notes :

    • please note the language, they don't all run the exact same test suites
    • this isn't an issue, more of a suggestion

    Note you can add your own tests cases or just run the full solution.

  • Custom User Avatar

    @vish4luffy, could you please format your code?

    def char_incr(i):
      incr=1
    

    ...

    To increase the readability of comments or descriptions, see this page in the github wiki.

  • Custom User Avatar

    @vish4luffy, I checked the Python solution and it works fine for hamster_me('k','s') . Additionally 109 were able to solve it without issues in Python. It's more likely some bug in your code. Anyway paste your code in a comment and mark with a spoiler flag and we can investigate what your problem is ;)

  • Custom User Avatar

    wouldn't that mean i'm forfeiting my submission for this particular kata?

    no

    just put it in a comment, use proper markfown formatting and check 'mark as having spoiler content'

  • Custom User Avatar

    My code results in an error

    And how do you know it's a kata issue?

    Please check my submission

    You have to post your code in a comment if you want anyone to see it.