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

Best reviews / Newest reviews
Obvious-veky 2 1
Ha. Nice! I just saw it. The interesting idea to break all links (instead rings) and look for the best of them. Brilliant! More
First on Open Labyrinth-grigoriytretyakov 1
Looks like you love OOP :-) Honestly I think you can easily use simple dictionary or named tuples instead Node class. "inverse" is a simple dict that are wrapped in a function. I didn't get why do you need a function for that. More
Dictionnary-Amachua 1
I think comments are redundant or you need to comment all of them. 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
Solution for anything Class-based.-diegueus9 1
Simple and clear. And a good idea about "call". Nothing to add :-) 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
First-scturtle
> THE ANSWERS TO EVERY QUESTION IN THE KNOWN UNIVERSE IS NOT 42 BUT YOGURT THEY hide the Truth and 42 is a false track :-) More
First-jcg
+1 for the solution and +2 for the scheme. More
First-bukebuer 1 1
You can use enumerate for 15-16, 27-28 and 35-36 lines. More
Pearls-hanpari 1
Just a question - why do you use indents in line 2? More
Generator-yoichi 1
Please, don't use "l" as a variable name. More
I thought dictionaries would be a good approach-p1co
if x.isalpha() is False: Why do you use this construction? text = list(phrase.lower()) "list" is redundant operation here. line 7-10 can be simpler, even if you don't like "setdefault" or default dicts: countDict[x] = countDict.get(x, 0) + 1 More
set default and sort-kendriu
for c in text.lower(): if c.islower(): I understand why do you use "islower", but for first glance it looks weird :-) "isalpha" will be better here, just for readability. More
First-JohnKershaw
I think you can make text = text.lower() once. And "count" method works for strings too, not only for lists. The next: (ord(i) < ord(most_common_letter)) == (i < most_common_letter) More
First-Gruggi
"max" is a built-in function, thus it's a bad idea to use this as the variable name. And brackets after "if" are redundant. More
First - Simple Areas-AQiccl135 1
> 3.14159265358979 You don't like constants or "math" modules? More
Simple Bubblesort-ale1ster 1
Why do you use brackets in line 2? More
First-asa119 2 1
Awesome. Maybe it's not "clear" for newbies but I like this. More
Clear Regex and Sets-tarikki 1 1
Column programming style :-) it's something new. I think you should move this in "Creative" :-) More
First-jcg 1
set(map(str.lower, set(s))) == set(s.lower()) More
1
2 3 4 5 6 7 8