45
Valentin Bryukhanov
http://bryukh.com/
Last seen 2 years ago
Member for 11 years, 7 months, 24 days
Difficulty Normal
Developer, engineer and taskMaker.
Good solution. But be careful with variables names as **"o"** (also as **"l"**). It can be read as 0 for some fonts. For humans vision :-)
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
Thanks. This is the original solution and interesting method with rotations. It's something new.
More
Of course. Thanks, i tried to solve it with linear equations and made a mistake. Now i see where is my mistake.
More
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
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