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 some smart dudes just make it hard but real smart guys also gives comments for nubs like me lol
thx for the coments
Golden comments, thank you very much
SUUUUUUUUUPER underrated!! Look at what commenting provides compared to the other code examples!
thx for explaining!
Same that the top ranked solution but the comments makes this one better.
Thank you for explaining that is such simple terms
There's only one unit test that has a character that occurs 15 times. The string for that is:
IWT LDGAS XH HIXAA P LTXGS EAPRT, STHEXIT BN TUUDGIH ID BPZT RATPG PCS ETGUTRI HTCHT DU XI.
Not sure why you are getting that string back for the failed test.
('text', 'I had 1 item then I had 4 now I have 5. How nice.')
('letters', ['1', '4', '5', 'a', 'a', 'a', 'c', 'd', 'd', 'e', 'e', 'e', 'e', 'h', 'h', 'h', 'h', 'h', 'i', 'i', 'i', 'i', 'i', 'm', 'n', 'n', 'n', 'o', 'o', 't', 't', 'v', 'w', 'w'])
[('h', 5), ('i', 5), ('e', 4), ('a', 3), ('n', 3), ('d', 2), ('o', 2), ('t', 2), ('w', 2), ('1', 1), ('4', 1), ('5', 1), ('c', 1), ('m', 1), ('v', 1)]
15 should equal 12
I don't see a letter that occurs 15 times. The letter that occurs the most is h, with 5 times. This is the test case it fails on.
One of the test cases has one letter occur 12 times.
tricky
For one of the last test cases I am receiving an error "15 should equal 12", yet if I print the test case, '15' does not occur anywhere in the string and neither is there any letter that occurs 15 or 12 times within the string. Any help?
Updated and closed the string correctly. Thanks.
There's a typo in the function call example in the description, the string is not properly enclosed.