45
Valentin Bryukhanov
http://bryukh.com/
Last seen 2 years ago
Member for 11 years, 7 months, 13 days
Difficulty Normal
Developer, engineer and taskMaker.
This is original and interesting solution, but is not "Clear" for newbies.
I would give you thumbsUp if it was in a different category.
More
Interesting. But for the "clear" category you can add some comments (for newbies).
More
We need to do something with code highlighter -- it's hard to read oneliners with scrolling (for chrome in mac)
Great solution!
More
Ha. Nice! I just saw it. The interesting idea to break all links (instead rings) and look for the best of them. Brilliant!
More
count += w2 > 4
Nice, if honestly, i didn't get it at first. It's not obvious type conversation, but interesting.
More
At first look i thought "This is not a puzzle. I see indents and docstring. It's clear solution and Veky didn't write it" :)
But then... You broke my brain. Now i have the puzzle for weekend.
More
Good. Only one remark - 'l' is the bad name for variable, because it very similar to "1" for some fonts. Without syntax highlighting it can complicate the code reading.
More
One little advice -- "sum" is a builtin function in python and using it as a variable name is not a good idea.
More
for i in range(len(data)):#Filling up the binary matrix with 0's and 1's
for j in range(len(data[i])):
You can replace it with
for row in data:
for el in row:
The line 8 can be reworked in the follow (this is easy expanded)
if data[i][j] in 'GS':
Is you
More
The nice trick!
lambda x:"+"*x+"-"*-x
I like it -- something new and not obvious.
More
It's really nice solution. It's short, it's readable, it's simple. Little PEP8 and docstring, and it will be perfect.
http://pep8online.com/share/519f30976cee16191749a28f
More
I can not see the author of this solution, because I use Random Review. But it looks like mine -- the same mistake with "except".
More