Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Really nice kata. A lil tricky and challenging but enjoyable at the same time!
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?
good crack!
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