15
M157q
2 11 31
1107/ 1195
Last seen 6 years ago
Member for 9 years, 6 months, 14 days
Difficulty Normal
Best reviews / Newest reviews
First-panaro32 3
great for using [short-ciruit evaluation](https://en.wikipedia.org/wiki/Short-circuit_evaluation)! More
First-bukebuer 1
Almost same as my solution. Though the different part is the `names()` function. You don't need `reduce()` there. Just `return set.union(*self.all_connection)` should be fine. :P More
Deceptive-veky 1 2
I like the `acc[d] -= -int(s)//60` More
dimpleqonx-veky 1
bravo! the beauty of math! o_o More
recursion-Cjkjvfnby
wow. I like this recursion version solution. More
InspiredbyFaibbus -oduvan
Is this a new language called `__underline__` XD? More
First-bukebuer
same as mine! though I do the abs on `timedelta` first. More
First-ciel
same as mine clear version solution. :P More
Second-gyahun_dash
hmm... nice use of `operator.and_()`. Though I think this should be published in Creative category. More
The Key-bryukh
same as mine. simple and elegant. thanks to the key. lol More
Deja vu-nickie
`(r > int(max(s),36)) - 1` This is really cool. I didn't come up with this but a ugly solution with `string.printable.index()`. And using short-circuit evaluation here is also brilliant. More
Exec-CounterSparta
Use `exec()` to fit try-except in one line. Really cool. More
DP-gyahun_dash
Quite functional programming way. Use the bottom up method. There's always a list with only one element in the end of the `reduce()`. The `reduce(integrate, reversed(pyramid)).pop()` can be changed to `reduce(integrate, reversed(pyramid))[0]` Although it's almost the same haha. More
one line: max(), min()-M157q
BTW, after Python 3.4, `max()` and `min()` have new keyword argument `default`. see The solution can be `return max(args, default=0) - min(args, default=0)` without if-else More
one line: re.sub()-M157q
should just use `str.replace()` More
First-dagger126
Oh... Use `set.issubset()` or even just `<=` then we don't need to filter those non-alpha chars. So smart! More
First-mr.floppy
oh... I used `re.sub()`. I forgot the `str.replace()` More
First-gyahun_dash
wow. don't know can use combinations here. GJ More
First-bukebuer
good for using `enmerate()` here. More