19
ludek.reif
6 13 33
1971/ 2195
Luděk Reif
Last seen 1 year ago
Member for 8 years, 3 months, 20 days
Difficulty Normal
Best reviews / Newest reviews
lambda re-sanello 1 1
I understand the solution, but beware to using this in actual project. regex could be slow, especially for long texts and used _findall_ function. More
First-nikka 1
Good solution, "[" and "]" aren't necessary in this case. More
First-dana77 1 1
Good solution, for return **\_\_repr__**, you can use unpack locals variables with **\*\*locals()**. -- *return "Building({self.south}, {self.west}, {self.width_WE}, {self.width_NS}, {self.height}".format(\*\*locals()* More
Speedy queue-hanpari 1
Nice solution, I like 'item[-2]' test. More
Property Warriors Fights-404.mikhail 1 1
There's is a better way to test `is_alive`, simply: def is_alive(self): return self.health > 0 `fight` could be used `is_alive`. `fight` function is only a little bit messy for me, it could be better divided. And better practice is make functions for actions, not only use the inne More
Dumb-obone 1 2
I am convinced, that this solution would feels better in Creative category :-) More
First-mikeguo2014
Good solution. You can combine your indexes to one number and test i-11 or i+9. More
minimalist-ludek.reif
sorted is useless here -- I used it for previous speedy solution and I didn't remove from this solution More
First - Verify anagrams-AQiccl135
You can improve your code. Don't use re, you can just compare 2 lists without spaces and solution will be shorter and faster. More
sorted lower case lists comparison-waxdesf
There's no need if-else, you can return result of comparison. Function list is no need too. More
First-igor_fist
Using _string.ascii_lowercase_ would be faster than creating own list. More
First-tomaslucovic
Solid solution, you can do it on one line (just idea for improving :): return sum(array[::2])*array[-1] if len(array) != 0 else 0 More
Simple solution with except-ludek.reif
One line solution: http://www.checkio.org/mission/even-last/publications/ludek.reif/python-3/one-line/ More
step by step-richshelswell
It could be better, if you used inner function for repeating code. More
First-dana77
Great readable solution. And pandas is the best :) More
First-Artyom_Derevenets
"if number % 15 == 0" could be better instead of "number%5 == 0 and number%3 == 0". More
First-takapt0226
Awesome, really good solution. More
First-gyahun_dash
Nice solution, I guess [::-1] is there for "Beard and Bread" test :) More
First Word-coveyi
There are unnecessary variables, you can save result of _replace_, _strip_ or _split_ back to variable _text_. Or you can return all of them in single line. More
First-tomkun
You can combine your coordinates and test i-11 or i+9. More