11
jiizzyy
1 11 23
616/ 645
Jonathan Rhau
Last seen 1 year ago
Member for 4 years, 6 months
Difficulty Normal
Best reviews / Newest reviews
one liner-Sim0000 2
Thanks to this, I have deepen my understanding of the sorted function!!! This is genius! More
Primary+Reverse Secondary Sort-go-dima 1
Need to digest this one because so beautiful More
First-Rexbelum 1 1
Good, you can replace keepLetter = keepLetter + char by keepLetter += char More
Use FP, Luke!-obone 1 1
this is nice, but I don't understand why you use ```len(items) - items.count(x)```. I guess it is to reverse the order of the sort? More
pawn brotherhood--dead-inside- 1
You just made me learn about the ord and chr function! Thanks ;) More
generated red re-juestr 1
Was hopping to see a solution using RegEx, thanks! ;) More
one liner-Sim0000 1 1
Trying to process this because it's beautiful! If I understand this, you basically sort base on a tuple compose of the negative count ( trick to reverse the order) and of the index position. So if we take the example ```[4, 6, 2, 2, 6, 4, 4, 4]``` ================================================ More
First-jiizzyy
This made me learn how to use args ;) args is pass down as a tupple More
A quicky-jiizzyy
Starting to learn about lambda ;) More
First-ChrisBlue 1
Nice! I was looking for a way to add the None requirement in a one liner and you did it! More
First-jiizzyy
With my current skill, that's the best I could come up with More
Very Clear and one liner-h_muramatsu
Wow, just learned something here! More
Using slicing, .index() and lambda-jiizzyy
Getting better with lambda expression ;) More
First-hirom08
Like this one! Didn't about it that way at first More
Between Markers-IRONKAGE
wow, that's clever! Using tupple index with True/False selector!! More
after10086-Little+cheng 1
Thanks, just discover the all() function because of this ;) More
Using a reverse dict mapping-jiizzyy
I put alot of comments, but the code is not that long. def checkio(text: str) -> str: stats = {} text = text.lower() for c in set(text): if c.isalpha(): if stats.get(text.count(c)): stats[text.count(c)].append(c) else: More
Short-genadiik
Make sense of defining the alphabet instead of doing for 'c in text' because the alphabet is known and finite More
Reverse Dict -> freq:[chars]-jiizzyy
it's like mapping a value to a list of keys More
Using slicing instead of split and using abs(h-12) for noon/midnight-jiizzyy
the only variable we need to extract is the hour since the rest remain unchanged, so decided to go with slicing. using the absolute value of h-12 to tackle midnight vs noon case in one clean action. Tried to make it shorter using lambda, but felt readability took too much of a hit More
1
2