27
kudinov.feodor
6 26 43
4076/ 4195
Федор Кудинов
Last seen 11 days ago
Member for 4 years, 9 months, 21 days
Difficulty Normal
Best reviews / Newest reviews
textwrap-fokusd 7
I think this solution should be in top )) No need to invent a wheel if it is in common library More
locals and format_map-TheRing 1 1
nice one, clever usage of locals! never saw format_map simple format also can be used: "Hi. My name is {name} and I'm {age} years old".format(**locals()) More
Simple solution-dan_rue 1 2
coords - I would suggest set usage, since position is not necessary, but remove iterates heavily through this object More
First-jcg 1
i like this solution more than just using math.gcd function ) oh ok, this is how math.gcd actually works under the hood More
Using recursion-Goodester 1 1
Wow, interesting solution, But it is expensive to use recursion here, and you have limitation in 2k elements More
First-ainem 1 1
expectation is that you yield items 1 by 1 in your case you first process all items, but only then start yielding them More
Use FP, Luke!-obone 1 1
count_neighbours = lambda grid, row, col: \ looks the same as def count_neighbours(grid, row, col): funny, never noticed ) More
Using regex-H0r4c3 1 1
pattern = re.sub('\[\]', '[^.]', pattern) good catch, in my solution if I find [] I return False at once, and tests still never fail More
First-kurosawa4434 1 1
Nice recursive solution, I didn't manage to solve it with recursion max_total=-1000 you could use float("-inf") instead, this task can be solved with single loop iteration, as calling recursive function twice in body does not look very effective (I am just jealous :)) More
First-gileadslostson 1
Nice solution as does not affect init method, given by task, For better readability, you could move nested class from body of Capital class More
First-l.szyman10 1 1
Nice usage of strip You can write just as ``` sum(bool(i.strip()) for i in text.split('\n')) ``` sum handles unpacking of generator comprehension, and it is more memory wise approach More
Simple if/else-Nocturne13 1
if you invert condition you can get rid of cumbersome if else block return end_pointX >= s2[0] and end_pointY >= s2[1] More
efficient precomputed-juestr 1
wow so wierd translatiion approach ) More
Yield-U.V 1
line 14 can be removed I would suggest more descriptive names and spaces around = and > as per PEP8 More
First-kdim 1
you could make it more readable and friendly not trying to fit into minimal amount of code lines 'Readability counts.' More
str.translate-Splitter 1 1
good idea with str.maketrans('AEIOUY', '000000') you could remove symbols by re lib: import re re.split("\W", text) More
Euler's (almost) identity in Python-juestr 1
thx, found variable starting from number More
First-kdim 1
liked the way you sorted final result, missed that in my solution More
First-kdim 1
did not like the idea to modify info data More
Annotated "Baby's first re"-BootzenKatzen 1 1
return bool(re.search(pattern, filename)) More
1
2 3 4 5 6