30
Oleg_Domokeev
9 26 47
4756/ 5195
Олег Домокеев
Last seen 1 year ago
Member for 6 years, 1 month, 9 days
Difficulty Normal
Best reviews / Newest reviews
overcomplicated first working version-Jay-Jay-D 2 1
I like this clear solution. Thank you. One can easy understand the logic of algorithm: for every pair find the line -> count the amount of dots on this line -> determine line with max dots. It's very unusual for me to use the linear regression to fine the line for two dots, but why not. May be this More
Army with 3 properties : is_alive, warrior, pop-Phil15 2
My respect for the comments to the code. I'll try to use this like standart More
graph connected components-Olpag 1
Nice and clear. But I think that the search of disconnected_nodes could be simpler. More
First-nakanohito_piyo 1
The solution is not, may be, the shortest. But it is very clear and readable. The idea to use nested while-loops is very creative. More
First-johankor 1 1
The code is clear. Only two remarks First: You could use standard method pop() instead new method get_item() Second: You do not need use if-statement in function add_units (for example: soldier=unit() self.units.append(soldier) More
First-Trailblazer 1
I like the method hit in class Warrior. It makes the function fight very simple. More
First-alexandrov.net 1
This is creative to consider the pair first than the single symbol More
First-Jay-Jay-D 1
It's very interesting that you operate with hole multiline string. It is very useful for me because I almost always try to split and make a list. Thank you. More
The Buttons-JimmyCarlos 1
Very clear and simple to understand. Thank you for comments. More
numpy.rot90-Jay-Jay-D 1
This solution impels me to get to know numpy. Thanks More
new_series-MBM_1607 1 1
Do we need parameter 'is_alive: bool = True' when we have '@property def is_alive(self): return self.health > 0'? More
eaterative-Tical_1000 1
Very good! May be it would be better not to use list. More
Yield from sorted with key-fed.kz 1
It's a very good example of using key as tuple. More
chr(97..122)-MrPod 1
Very original idea as for me. I like it. More
Count + Append-raphael.prosillo 1 1
the block 'else: pass' is always unnecessary. You do not need to use it. And you could try list comprehension instead append method More
Simple O(N^2)-mindaugas.dadurkevicius 1
It’s possible for i2 in range(i + 1) More
numpy.ndarray.max-Jay-Jay-D 1
Numpy is very power tool. Thank you for the example of the use of it. More
Linear Programming-drpepper1412 1 1
Very clear solution. I've learned much about how to use scipy, especially for the task or linear programming. But the linprog gives us the float values, but we need integers. Then you truncate the result. I'm not sure, that we obtain the true solution in all possible cases. More
Bfs_2.0-swagg010164 1
Thank you for the clear commentaries. More
First-yoichi 1
It's perfect Only one remark: I place of break You could use return in if-statements. return True in first and return False in second. So you do not need the last line. More
1
2 3