31
Cjkjvfnby
10 30 43
5274/ 5695
Andrey Solomatin
Last seen 1 year ago
Member for 11 years, 2 months, 8 days
Difficulty Normal
Best reviews / Newest reviews
First-THROYAN 1 1
It is very hard to read such code Don't write multiline oneliners Use ** instead of math.pow More
First-jcg 1 1
You count key for each element twice. See nickie [comment](www.checkio.org/mission/min-max/publications/Sim0000/python-3/first/#comment-outer-12784) Don't use spaces around **=** in function definition and call. I prefer to make all arguments required in case of min_max. You use key in all cas More
Second-Sim0000 1 1
No need to use deque here. list.pop is enough. You call area for each point it is super ineffective. You mutate checkio argument, it is not issue but bad practice. http://www.checkio.org/forum/post/1618/proper-way-to-check-if-sequence-is-empty/ More
Second-ultrajack 1 1
no: **p = list(map(lambda x:None, METALS))** yes: **p = [None] * len(METALS)** no: **if p[idx] == None:** yes: **if p[idx] is None:** no: **[frac,]** yes: **[frac]** you can replace: **sary = list(map(sum, zip(sary,div)))** with more readable list comprehansion **sary = [sum(x) for x in zip More
^-veky 1 2
Congratulation you have fastest solution here (1 from 8) More
First-ka9e 1 1
you can use **range** function More
Kanji-z_kro 1 1
You lambda can be replaced by function from standard library. More
First-makoto_yamagata 1
no: **((number%3) == 0)** yes: **number % 3 == 0** no: **if len(msg) > 0** yes: **if msg** More
First-Fermax 1 1
no: **str.count(text ,'1')** yes: **text.count('1')** More
Flood Fill-PositronicLlama 1
**open** is builtin python function (even it does not present here) don't shadow it. You doc string for checkio not uses recommenced quotes. And it does not describe that function do. More
First-Gennady 1
This looks bad: **line = [0 for i in range(0,num)]** you can use: **line = [0] * num** You can use **copy.copy(line)** or **list(line)** or **line[:]** in line 39. No need to deepcopy. More
First-bukebuer 1 1
There is function in standard library that do the same as **lambda x: abs(x)** you should use it instead of this lambda. More
Lingson - Non Unique Elements-Lingson 1
You did not need range if you need only value. for x in data: counter = data.count(x) For cases then you need both index and value use enumerate: for i, val in enumerate(data): print(i, val) More
double loop-dirk86 1 1
no: **word == other\_word[-len(word):]** yes: **other\_word.endswith(word)** More
First-aomoriringo 1
You can rename function argument to wheat and ommit line 2. More
First-fourat05 1
You can skip parenthesis: if number % 5 == 0 and number % 3 == 0: PS. Please follow python style guide (PEP8) More
First-Gennady 1
It is possible implementation of that how sorted handle key argument. More
Third-ROBCHI 1
Don't forget to remove comments from template. More
First-bukebuer 1 1
Don't forget to remove debug prints. More
First-funningboy 1
Very complex: zip([game_result[i][0] for i in range(3)], [game_result[i][1] for i in range(3)], [game_result[i][2] for i in range(3)]) same as: [tuple(x) for x in game_result] zip([game_result[0][0]], [game_result[1][1]], [game_result[2][2]]) same as: [(game_result[0][0], game_result[1 More
1 2 3
4
5 6 7 8 9 10 11 12 13 14 15