Ad
  • Custom User Avatar

    It is about the way you're creating OrderedDict's.

    OrderedDict is a dictionary where keys maintain the order in which they are inserted.
    That means, you have to create OrderedDict, by giving it keys in the order you want them to stay.
    Try to use for loop to do this.

    When you solve this, rest of your code should be working with Python 2.7.6.
    No Issue in this case.

    Godspeed mate!

  • Custom User Avatar

    Yeah, the situation is clearly not ideal, considering the possible lack of feedback when the solution is incorrect.

    Nice work, either way. ;)

  • Custom User Avatar

    Yeah i see it now.

    Finally I succeesed to submit my solution.
    It is not so obvious when you cant see expected output.

    I really lost some hairs on this one!
    Thanks mate!

  • Custom User Avatar

    Except your solution is just wrong ;)

    No issue here, apart from the fact that, since your solution doesn't output the correct result, the server/browser is chocking to death because of the amount of data each assertion message is trying to print to the console. So, yes, your code is way faster, but only because it doesn't compute the complete output.

  • Custom User Avatar

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