27
kudinov.feodor
6 26 43
4076/ 4195
Федор Кудинов
Last seen 10 hours ago
Member for 4 years, 10 months, 5 days
Difficulty Normal
Best reviews / Newest reviews
put [start_watching]*2 into els-tokyoamado 1 1
I am back, I got it, you copy link to iterator so zip can call next 2 times for each loop, Raised score, but still I believe teammates would suffer from such implicit logic, reading your code ) More
put [start_watching]*2 into els-tokyoamado 1
Liked this part: st = start_watching if start_watching else els[0] rather weird logic with lists multiplications. I would suggest to simplify that to add more clarity I do not get why "for a, b in zip(*[iter(els_)] * 2)" a and b are not equal 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
itertools ftw-juestr 1 1
oh this dark magic with multiplication of iterator More
2 lines (packed from 10)-CDG.Axel 1
nice one, completely forgot about slice step More
set of square-Sim0000 1
Identical solution, almost letter to letter )) More
efficient precomputed-juestr 1
wow so wierd translatiion approach ) More
heapq.heappushpop-juestr 1 1
thought about heap, but ended with bisect search not to mangle signs I wonder which solution is more effective More
6-liner: stepping lambda-przemyslaw.daniel 1
nice codeblock of walrus expressions More
Euler's (almost) identity in Python-juestr 1
thx, found variable starting from number 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
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-kdim 1
did not like the idea to modify info data 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
Annotated "Baby's first re"-BootzenKatzen 1 1
return bool(re.search(pattern, filename)) More
Let re do the work ...-gear
is there a reason to use reversed(range(1,(len(line)//2)+1)) vs range(1,(len(line)//2)+1, -1) More
First-mildm
interresting approach with sum, and memory safe More
First-lvlinh96
you can replace round(len(line)/2) by math.floor or math.ceil or // based on your algorithm and if you go from biggest 'i' to least, you can break function as you get line.count(line[j:j+i]) > 1 More
First-betodenigris
you can try to solve task with list comprehension More
Recursive solution-romain.hennequin.trash
how do you reset already_computed between calls, I think it is wrong solution More
1
2
3 4 5 6