21
artemrudenko
9 25 37
2311/ 2695
artem rudenko
Last seen 9 months ago
Member for 13 years, 2 months, 19 days
Difficulty Normal
Software Testing Engineer

Best reviews / Newest reviews
Ignalion's twist-nickie 3 2
The only thing to add here is that it's recomended to use isinstance instead of type. More
BFS paths-spoty 2
Cool, small tips: for x in range(0,8): No need to specify 0 in range, e.g. can be replaced with: for x in range(8): Two 'for' statements can be replaced with itertools.product: for x in range(0,8): for y in range(0,8): is the same as: for x, y in product(range(8), range(8)) More
First-LexCavalera 2
Note that rotate in Python can be done easier zip(*original[::-1]) More
First-Sim0000 2 2
ifs))) each and every time i am seeing a lot of ifs i wonder about switch...case. Unfortunatelly in python we have only dicts to somehow cover switch..case functionality. In any case thumbs up))))) More
First-cdthurman 2 1
It's not a very good practice to use 'sum' as variable name. More
First-skyJuice 2
To get rid of i[0] and i[1] you can write: for rshift, cshift in moor: Aslo there is no any need to use redundant parentheses in the code below: if(0<=row+i[0]More
First-bukebuer 2 1
Not a good idea to redefine 'sum' as a variable since it is a python core function. Also there is not need to do split: int(cmd.split(' ')[1]) - you can use int(cmd[-1]) instead. More
sorted-Cjkjvfnby 1
Awesome))) I have used almost the same idea, however i have created too many redundant checks More
First-Paul92 1 1
From the stackoverflow and some python speed tips and trics is not a good way to shift list right using pop and insert. Specifically insert is a very slow list operation. Instead of your rot(l) function you can take a look at collections.deque.rotate. More
4th-gyahun_dash 1 1
Small addition is that you can replace 'sorted(enum(rods), key = lambda ir: ir[1])' with 'sorted(enum(rods), key = itemgetter(1))' More
First-shota243 1 1
Nice, seems we think the same way)) at least while creating solution for this task More
First-artemrudenko 1 1
Thank you all for your comments. This solution has been written a long time ago and as you all probably know no one able to edit it. What i am asking you is to give full review with comments instead of commenting ugly and etc. I know this - trust me. Thank you More
Recursive-Amachua 1 2
What i like in your solutions is that they are always well documented! More
First Fractions-tobytobytoby 1
Nice, but think that this is not a good practice to use 'import *' especially in case when you need only 'Fractions'. Also is not really needed to wrap return result to list. More
Simple hashlib - First-erik.white.2014 1
You can use getattr(hashlib, algorithm) instead of if here. In any case - cool. More
for/try-brianraythomas 1 1
Quite an interesting solution. I never thought that it can be done this way(from my point of view - quite unpythonic). More
First-Sim0000 1
Interesting, i like how you did this. More
First: Simple areas-Nik05
Cool, but what if to calculate len(args) once and use calculated value then? More
First-bukebuer 1
Cool, note that you can use Fraction(1) instead of Fraction(1, 1)(https://docs.python.org/2/library/fractions.html#module-fractions) More
reduce-Cjkjvfnby
Great, that what i was thinking about, but not succeded. The best sample of reduce and operator using. More
1
2 3