45
bryukh
16 32 48
15857/ 17173
Valentin Bryukhanov http://bryukh.com/
Last seen 2 years ago
Member for 11 years, 7 months, 23 days
Difficulty Normal
Developer, engineer and taskMaker.

Best reviews / Newest reviews
Very ugly solution , I wish I can do better-ahmedaswai
Whitespaces can be useful. PEP8 can make your code is more readable. And "Counter" here is overkill, I think. But I sure you can make this pretty and more simpler. More
Xs and Os Second -cgallant
Sometimes you are using spaces around operators, sometimes - not. Not bad and if you will make it more "general" then it will be nice solution. More
Dijkstra (no fib-heap => O(n^2))-MorrisFeist
Why do you use class here? They look like simple dictionaries here. More
Touch the right wall-maurice.makaay 1
Not universal, but funny :-) And I like "properties". Nice! More
First-undead404 1
Change input data is not a good practice. You can use work = sorted(data) instead line 6-7 amount = len(data) line 9 is overhead if amount % 2: # the same as amount % 2 != 0 and line 13 is not needed. More
Pedantic-htamas 1
Really pedantic and accurate. Super. More
First-davidpm 2
" == True" is redundant. "range(0, len(list_of_words))" -- 0 is default, so you can use range(x) == range(0, x) And you can iterate through list instead indexes: for w1 in list_of_words: for w2 in list_of_words: More
Assignment-veky 1
A cool trick with the double assignment. More
TopoHeapSort-tjreedy
First comment you can make as docstring. The comments are good -- very readable and simple. Dictionary comprehension is nice. More
First-Fettn
Titanic work. Interesting reading. More
First-andy_s
Nice. I like these docstrings. More
First-htamas
"lru_cache" -- Thanks. It's something new for me. More
First-htamas 1
As idea, you can easily rework it to generator. More
Gaussian elimination-htamas
Of course. Thanks, i tried to solve it with linear equations and made a mistake. Now i see where is my mistake. More
First-htamas
I think you can place it in the "Speedy" category. More
First-Amachua 1
It's almost "clear" solution. Short and simple, but please don't use long lines -- it's hard for reading. :-) The new PEP8 allows 100 characters per line. More
First-htamas 1
Tricky :) It can be placed in the "Speedy" category. More
First-bukebuer 1
**bin()** and **int(n, 2)** can help here :) More
First-pawlyk
It does not look as "Clear" solution. The long lines, the bad names. I agree with [Cjkjvfnby's comment.](http://www.checkio.org/mission/humpty-dumpty/publications/pawlyk/python-27/first/#comment-outer-9032) More
First-aomoriringo 1
I am not sure that is "clear" solution :) c >= 'a' and c <= 'z' can be 'a' <= c <= 'z' char_freq[c]+=1 Whitespaces around operator. char_freq = {chr(c): 0 for c in range(ord('a'), ord('z')+1)} You don't need prefill your dict, just use dict.get(key, 0) More
1 2 3 4 5
6
7 8