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

Best reviews / Newest reviews
Ugly bruteforce-Amachua 1 1
Yeah, the third loop is redundant even for bruteforce :) More
First-Bibiche 1
Nice code! Not neccessary place your functions inside checkio function. Its can be outside. More
First-ForrestGump 1
line 4-7 can be simpler if alpha not in text: return False More
First-eugen.stegnij 1
I didn't get why do you use "*a" here. A input tuple become a == ((data),) and then you unwrap it again. list conversion are redundant -- "sorted" can work with tuples too. And "lambda x: abs(x)" is the same as "abs". So you can use "key=abs". P.S. PEP8 is a good choice for "Clear" ca More
Cheating :)-weerd 1 1
Ha ha :) Super! It's really funny. You just made my day. More
First-CyroAvernus 1 1
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
Solution for anything Class-based.-diegueus9 1
Simple and clear. And a good idea about "call". Nothing to add :-) More
First-AlexeyIvchenko 1
In this task you have not to search the shortest way. So you don't need min(self.routes). But if you want the shortest way, then i recommend you to look at another algorithms (Dijkstra, BFS, A* search) More
First-tuxninja 1
You don't need line 2. Just `def checkio(number):` if you don't like 'data' name. More
First-jcg 1
Thank you for the interesting comments. More
Unary-veky 1 1
The nice trick! lambda x:"+"*x+"-"*-x I like it -- something new and not obvious. More
First-Bibiche 1 1
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
Friends - too many strings, but it's mine)-AleksandrKasianov 1 1
"self.connection = connection" is redundant in "add" or "remove" methods. You don't need save them in the instance. line 7 if isinstance(self.connections,tuple): Why do you check it in "add" method? You save "connection**S**" in init. If you are using "if self.connection in to_list_connectio More
Comprehend-veky 1 1
It's real short! But too slow. Yes, you are lazier than i am :) More
Clear Regex and Sets-tarikki 1 1
Column programming style :-) it's something new. I think you should move this in "Creative" :-) More
pbs-veky 1 1
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
even odd-bunnychai 1
o + o Looks like smile :) More
Second-ajmssc 1
You forgot about spaces around operators (pep8). if cell[0]==10 and cell[1]==10: You can make it simpler if cell == (10, 10): line 4 -- "== 1" is not necessary if lab[cell[0]][cell[1]]: line 13-17 min(paths, key=len) But for the shortest path you can use BFS More
First-Amachua 1 1
It's nice idea to solve it with weeks' diff, but hard to read. More
Ax=B-Amachua 1
Good solutions, but too long lines do this hard-readable. More
1
2
3 4 5 6 7 8