34
DiZ
14 34 43
7059/ 7195
Last seen 2 years ago
Member for 11 years, 6 months, 11 days
Difficulty Normal
Best reviews / Newest reviews
Forgetful Prisoner-vinc 1
I tested this solution, 100% success on 10000 random tests (right hand rule is very useful)! But it does NOT pass your maze test. More
One-liner with magic number-suic 1
for golfing, here is your solution in 65 characters ;) check_pangram=lambda t:len(set(filter(str.islower,t.lower())))>25 More
Pandemonium-veky 1 1
Nearly same here, sorry for the involuntary copy! More
arithmetic-bunnychai 1
Nice solution (quite the same on my own, except I reasoned on k-1). Just a bit surprised by last line ; why not simply ;-) : return max(t, number - s) More
56 chars-Sim0000 1
Haha great! Still prefer lambda oneliners though :-P More
First-noobien 1
Strings are also iterable, so you can use _for_ loop and _in_ operator on them directly. More
First-yoichi 1 1
Smart way to "limit" your grid but here you should use 'infinite' grid by memoizing live cells, truly easier. More
67 chars-Sim0000 1 1
I'm surprised, finally we have different solutions but (nearly :-P) same code length! More
Second-yoichi 1 1
Better than first one, really more readable! But still a niptick: imagine you have 2 live cells (0,0) and (100, 100). Are you really gonna loop through 10,000 (-2) dead cells for nothing? More
set-gyahun_dash 1
That's a nice solution! Just one niptick, no need to cast output to `list` ;-) More
First-1089
Not portable. You might consider recursive function More
First-madmanbob
Simple, but you don't need "return False" statements ;) More
Count Inversions-arunnadda
You should look at _for_ loop. Or if you really want to stick with _while_ loop: if list[i] > list[j]: output += 1 j += 1 else: j += 1 Here it is better to write, simpler and more readable: if list[i] > list[j]: output += 1 j += 1 Or even bette More
I don't love Python!-DiZ
What if you execute this code with Python 2? :-O More
Multiple assignment in one line.-fantakeshi 1
Maybe simply using Python chained assignments __eq__ = __ne__ = __gt__ = __lt__ = __ge__ = __le__ = lambda a, b: True More
First, so much fun :D-Codenburger
Note that you can make several operations on the same line and you can also factorize common code (both in _if_ and _else_ statements for better readibility. More
Maths - with proof-Juge_Ti 1
Can you explain a bit deduction part from (1) and (2)? I'm really interested in. More
Third-dagger126 1
Better than recalculate heuristic, you can simply use _cost_ and add right speed: new_cost = cost + 2 / speed + (field_map[j][i] == 'B') More
Sudo make me a curry-veky 1
I like curry, but currying... a bit indigestible for me :-P More
59-Volatility
[Mine](http://www.checkio.org/mission/flatten-list/publications/DiZ/python-27/50/) is shorter, mine is shorter! :-P More
1
2
3