45
Valentin Bryukhanov
http://bryukh.com/
Last seen 2 years ago
Member for 11 years, 7 months, 2 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
count += w2 > 4
Nice, if honestly, i didn't get it at first. It's not obvious type conversation, but interesting.
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
Thanks. This is the original solution and interesting method with rotations. It's something new.
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
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
Why?
result_v = check_vertical(matrix)
if result_v:
return True
It can be shorter and simpler:
if check_vertical(matrix):
return True
Or you can simplify the whole function:
return check_vertical(matrix) or check_horizontal or check_diagonal
More