Ad
  • Custom User Avatar

    Really nice kata. A lil tricky and challenging but enjoyable at the same time!

  • Custom User Avatar

    while trying to solve the kata i noticed something funny: for debugging purposes i had a print statement in one of my loops. with the print statement i would pass a couple of tests before timing out. but because the numbers were so large i removed it and suddenly timed out without even passing a single test. i didnt change anything else in my code other than that print. to double-check i put it back in and "voilá" i passed a few tests again... strange huh?

  • Custom User Avatar
  • Custom User Avatar

    Nice kata. I already get a list of tuples of each letter and its occurence in descending order. however I am struggling now to sort tuples of letters with the same occurence alphabetically.
    My approach to this kata was to build a dictionary of (letter: occurence) pairs, but I dont see a way to sort the dictionary by value (descending) and key (alphabetically) for all tuples with equal values at the same time. any hints?

    ('k', 1) should equal ('j', 1)
    7 Passed
    1 Failed
    0 Errors