May 7, 2024, 1:30 p.m. |
+ 1 |
for Comment
veky: Iterable doesn't have to support indexing. :-/
|
May 2, 2024, 10:28 a.m. |
+ 1 |
for Comment
nurzhan7511: Good use of zip_longest but imho "_guard" is overcoding. You can leave zip_longest(it, it) and fillv...
|
April 11, 2024, 5:29 p.m. |
+ 1 |
for Comment
StefanPochmann: 8 chars less: ```python changing_direction=lambda e,p=lambda s:[a<b for a,b in zip(s,s[1:])if a-b]:l...
|
April 3, 2024, 4:28 p.m. |
+ 1 |
for Comment
StefanPochmann: I actually think this is better than returning the original `items`. Consistently returns a new list...
|
March 2, 2024, 10:25 p.m. |
+ 1 |
for Comment
kudinov.feodor: wow so wierd translatiion approach )
|
Nov. 16, 2023, 12:43 p.m. |
+ 1 |
for Comment
Kolia951: Is that fair to change function's arguments? =)
|
Nov. 6, 2023, 10:57 a.m. |
+ 1 |
for Comment
tamagoyaki: Very complicated but nice solution
|
Oct. 18, 2023, 10:20 p.m. |
+ 1 |
for Comment
U.V: Interesting using of recursion and yield
|
Oct. 2, 2023, 12:26 p.m. |
+ 1 |
for Comment
Alexander_Avduevsky: Very transparent implemenation. _reviewed for quest points_
|
Aug. 12, 2023, 9:39 a.m. |
+ 1 |
for Comment
U.V: Yes. I see yours solution - it's interesting
|
June 9, 2023, 12:19 p.m. |
+ 1 |
for Comment
Nocturne13: Nice, clear and readable solution. Well done.
|
May 1, 2023, 11:58 a.m. |
+ 1 |
for Comment
H0r4c3: Great use of regex! Regex for the win!
|
May 1, 2023, 11:58 a.m. |
+ 1 |
for Comment
H0r4c3: Great solution, nice idea with the dictionary 'brackets'!
|
May 1, 2023, 11:58 a.m. |
+ 1 |
for Comment
H0r4c3: This solution is a real lesson in Python! Lambda, filter, map. And the best, subtraction of booleans...
|
May 1, 2023, 11:58 a.m. |
+ 1 |
for Comment
H0r4c3: Great solution! Recursion for the win!
|
April 29, 2023, 9:53 p.m. |
+ 1 |
for Comment
H0r4c3: Although the improved version is great, this one is nice, too.
|
April 29, 2023, 9:44 p.m. |
+ 1 |
for Comment
H0r4c3: Nice solution! I used re.findall('[\D]+[\d]+', password) for the second part, because I like regex.
|
April 29, 2023, 11:57 a.m. |
+ 1 |
for Comment
H0r4c3: Great solution! Thanks for the explanations!
|
April 29, 2023, 11:56 a.m. |
+ 1 |
for Comment
H0r4c3: Nice solution! Regex for the win!
|
March 14, 2023, 11:08 p.m. |
+ 1 |
for Comment
paf: Ha! This is really creative way. It is interesting to go through =) But 3 lambda functions... how fa...
|
March 13, 2023, 9:57 p.m. |
+ 1 |
for Comment
kudinov.feodor: thought about heap, but ended with bisect search not to mangle signs I wonder which solution is more...
|
March 13, 2023, 9:38 p.m. |
+ 1 |
for Comment
Nocturne13: Maybe this solution is not easy to grasp at first glance, bul it looks rather accurate, definitely b...
|
March 11, 2023, 8:39 p.m. |
+ 1 |
for Comment
U.V: Strange solution, but it works !
|
Feb. 4, 2023, 10:03 p.m. |
+ 1 |
for Comment
Kolia951: Good job! I thought that everybody will using `eval()` here to solve =)
|
Feb. 2, 2023, 10:47 p.m. |
+ 1 |
for Comment
lisovsky: Excellent recursive algorithm. I've looked at a lot of solutions, but I haven't seen any shorter.
|
Jan. 29, 2023, 10:19 p.m. |
+ 1 |
for Comment
lisovsky: a good solution is to use data classes
|
Nov. 29, 2022, 1:26 p.m. |
+ 1 |
for Comment
bogdan.n.petru: wow, the _"(a > b) - (a < b)"_ part stayed in my mind for a while. I would of never thinked to subst...
|
Nov. 25, 2022, 7:38 a.m. |
+ 1 |
for Comment
veky: Yeah, preparing the grid into a graph for Dijkstra is a lot of work. It can be shortened somewhat by...
|
Nov. 15, 2022, 9:28 p.m. |
+ 1 |
for Comment
veky: yes, it's nive that in absence of zeros, two first ducks are in fact the same. 🦆😅
|
Nov. 15, 2022, 3:06 p.m. |
+ 1 |
for Comment
jakubbortlik: I wrote a very similar solution (except I used `bool()` :) and a non-greedy `r'\b.*?\b'`), but your ...
|
Oct. 5, 2022, 6:17 p.m. |
+ 1 |
for Comment
amandel: You're right. I realized it half an hour ago, and posted the new solution.
|
July 26, 2022, 10:22 a.m. |
+ 1 |
for Comment
karlian: Creative _double-set-counting_ method!
|
July 13, 2022, 9:43 a.m. |
+ 1 |
for Comment
zwerkoff: "[]check.txt", "[]check.txt" is True. Your result is False!
|
July 13, 2022, 9:41 a.m. |
+ 1 |
for Comment
Ulukai85: Interesting solution, just using error handling. Perhaps you could replace (hehe) line 8 with "retur...
|
May 6, 2022, 11:36 p.m. |
+ 1 |
for Comment
dx2-66: Nice, I thought of a comprehension with join but could not make it work. Using compress() instead ma...
|
March 18, 2022, 1:48 p.m. |
+ 1 |
for Comment
sMiTeOne: That's awesome! Nice solution!
|
Feb. 19, 2022, 1:36 p.m. |
+ 1 |
for Comment
mlahor: A very interesting solution. It would never come naturally to me to use 'None' as a parameter for li...
|
Feb. 13, 2022, 4:52 p.m. |
+ 1 |
for Comment
kudinov.feodor: oh this dark magic with multiplication of iterator
|
Jan. 20, 2022, 5:46 p.m. |
+ 1 |
for Comment
CDG.Axel: Great! Btw you can count digits and use it for expression, it will be one-liner. return len(password...
|
Jan. 12, 2022, 4:50 p.m. |
+ 1 |
for Comment
vvm70: **iter** for Army is great. And **next** makes the code simpler.
|
Dec. 28, 2021, 3:13 p.m. |
+ 1 |
for Comment
sento07073: Such a powerful and beautiful way
|
Dec. 28, 2021, 3:12 p.m. |
+ 1 |
for Comment
Magu: impressive recursive solution. nice. :D
|
Dec. 24, 2021, 4:36 p.m. |
+ 1 |
for Comment
mlahor: A very smart succinct solution :)
|
Dec. 19, 2021, 4:20 a.m. |
+ 1 |
for Comment
DominicAHSantos: Love it, my approach was similar =)
|
Dec. 6, 2021, 5:22 p.m. |
+ 1 |
for Comment
Phil15: Great, I tried with graphlib a bit (I asked oduvan to support the graphlib module) but it did not fe...
|
Dec. 5, 2021, 1:44 p.m. |
+ 1 |
for Comment
raycdg: It is great! Beautiful recursion.
|
Dec. 1, 2021, 2:15 p.m. |
+ 1 |
for Comment
seflaherty: 🤔 Can the author link to the sources for "the next 4 functions are taken from median"?
|
Nov. 29, 2021, 2:32 p.m. |
+ 1 |
for Comment
przemyslaw.daniel: according to the task description it fails for below case, doesn't it? unique_emails(["mike@apple.co...
|
Oct. 21, 2021, 3:22 p.m. |
+ 1 |
for Comment
Phil15: To answer your comment on my solution, I agree. Liked solutions are not necessarily the best ones. B...
|
Oct. 19, 2021, 1:48 p.m. |
+ 1 |
for Comment
nserev: Very good one liner, which I like. Not very often you can see such solution
|
Oct. 11, 2021, 10:57 a.m. |
+ 1 |
for Comment
juanmsmilla: I'm a simple man. I see a recursion I press like.
|
Sept. 29, 2021, 1:45 p.m. |
+ 1 |
for Comment
CDG.Axel: Thanks for long but interesting solution!
|
Sept. 3, 2021, 8:58 p.m. |
+ 1 |
for Comment
Ulukai85: Ah, every time I see a solution with yield, I think: Great, I have to use that, too... but I never s...
|
Aug. 24, 2021, 12:44 p.m. |
+ 1 |
for Comment
jsg-inet: Smart, cool, clean and well explained!
|
July 23, 2021, 8:03 p.m. |
+ 1 |
for Comment
danila.s_82f7885346184ca098f30: Well done! Short and effective solution.
|
April 13, 2021, 3:58 p.m. |
+ 1 |
for Comment
ogoro: very interesting solution - bitmap XOR, reduces, thank you!)
|
March 10, 2021, 8:05 p.m. |
+ 1 |
for Comment
Rcp8jzd: I like your solution, it is similar to [my solution](https://py.checkio.org/mission/park-benches/pub...
|
Feb. 28, 2021, 10:03 p.m. |
+ 1 |
for Comment
Oleg_Levonjuk: This solution should be putted in "creative" category) It is very interesting, but definitely not "c...
|
Feb. 22, 2021, 7:06 p.m. |
+ 1 |
for Comment
ogoro: clear and compact algorithm for permutation, thank you)
|
Dec. 8, 2020, 4:36 p.m. |
+ 1 |
for Comment
rybld2: simple and efficient! smart!!!
|
June 22, 2020, 9:31 p.m. |
+ 1 |
for Comment
bcamel: Interesting approach, but why the '+1' to the index? Also, using exception handling for conditional ...
|
June 16, 2020, 3:23 p.m. |
+ 1 |
for Comment
igharok: Clear but IMHO this is the case when functions makes it harder to understand
|
June 9, 2020, 10:31 a.m. |
+ 1 |
for Comment
Jiyoqisv: using "data.sort()" can definitely not be considered as speedy
|
June 6, 2020, 8:05 p.m. |
+ 1 |
for Comment
rossras: Nice use of itertools.accumulate to get a running max! -- I always forget about that one.
|
June 3, 2020, 8:23 p.m. |
+ 1 |
for Comment
Phil15: Looking `delete` and since you imported product from `itertools`, I thought about `itertools.compres...
|
May 22, 2020, 10:57 p.m. |
+ 1 |
for Comment
yoichi: It's too simple :) Just adds the k selected pieces.
|
May 22, 2020, 9:54 p.m. |
+ 1 |
for Comment
carel.anthonissen: Perfect. I can't imagine any improvement on this.
|
May 4, 2020, 11:39 p.m. |
+ 1 |
for Comment
r_tchaik: You could simplify: while True: if not active: break with: while active:
|
April 23, 2020, 6:40 p.m. |
+ 1 |
for Comment
piter239: really good idea, I'm proud I got this one as well))
|
April 22, 2020, 7 p.m. |
+ 1 |
for Comment
piter239: You got it in linear time as well! Nice to see)) And from your solution I learned divmod shortcut, t...
|
April 22, 2020, 6:57 p.m. |
+ 1 |
for Comment
piter239: Exactly! Why try to reimplement the wheel? ))
|
April 17, 2020, 9:44 p.m. |
+ 1 |
for Comment
nash8114: Nice and clean with range and step. +2 for you!
|
April 16, 2020, 4:53 p.m. |
+ 1 |
for Comment
Raszlo: This is a nice and clear approach.
|
April 9, 2020, 7:02 p.m. |
+ 1 |
for Comment
ibonyun: This is the first solution I've reviewed which is better than my own. Very nice. Clean and efficient...
|
April 8, 2020, 10:44 p.m. |
+ 1 |
for Comment
nash8114: That is a lot of code. Total overkill for this missing. Did you just feel like writing a complete pa...
|
April 7, 2020, 9:07 p.m. |
+ 1 |
for Comment
tea1mer: very good to think like that I dobble liked
|
April 1, 2020, 5:08 p.m. |
+ 1 |
for Comment
nash8114: Creative, but a little over engineered. To get every second value starting from the second, you can ...
|
March 30, 2020, 12:17 p.m. |
+ 1 |
for Comment
eegoldstraw: Well done for getting this to work. This code makes good use of itertools and lambda functions. Good...
|
March 17, 2020, 2:36 p.m. |
+ 1 |
for Comment
veky: Very nice approach! Is this exact (up to the float inexactness)? I think it is.
|
March 1, 2020, 4:54 p.m. |
+ 1 |
for Comment
Rcp8jzd: Your method for transposing the lines with zip_longest is pretty impressive! Surely more efficient t...
|
Feb. 29, 2020, 10:39 p.m. |
+ 1 |
for Comment
colinmcnicholl: functools singledispatch is new to me. It's use in this case makes for an interesting, very compact ...
|
Feb. 24, 2020, 7:29 p.m. |
+ 1 |
for Comment
igharok: Nothing to add: functional, minimized while still readable
|
Feb. 10, 2020, 2:27 p.m. |
+ 1 |
for Comment
Phil15: I'm not sure I would call it clear, but I like the way your getter/setter functions manage multiple ...
|
Feb. 9, 2020, 4:49 a.m. |
+ 1 |
for Comment
jiizzyy: Was hopping to see a solution using RegEx, thanks! ;)
|
Feb. 7, 2020, 4:20 p.m. |
+ 1 |
for Comment
vby: Last "for i in range(4):" can be replaced by "for i in range(3):"
|
Feb. 6, 2020, 6:33 p.m. |
+ 1 |
for Comment
muneerkhan31886: My Friend no need for parenthesis using comma is enough to do for you to be tuple.
|
Jan. 24, 2020, 6:22 p.m. |
+ 1 |
for Comment
colinmcnicholl: Great solution. Not much I can add to improve upon it. A few comments - nitpicking really. Line 17: ...
|
Jan. 23, 2020, 8:36 p.m. |
+ 1 |
for Comment
dezikk: This is actually cheating to change the method signature, but I vote up for creativity of this solut...
|
Jan. 22, 2020, 10:04 a.m. |
+ 1 |
for Comment
veky: Three functions just because of a single `i`. :-)
|
Dec. 2, 2019, 1:36 p.m. |
+ 1 |
for Comment
tofguerrier: Warm regards. Christophe. Website: http://tofguerrier.github.io/ “Join the slow email movement! Read...
|
Nov. 20, 2019, 12:12 p.m. |
+ 1 |
for Comment
danersow: The Zen of Python №7 Readability counts. but this is really Creative)
|
Nov. 11, 2019, 11:33 p.m. |
+ 1 |
for Comment
przemyslaw.daniel: I wish we had pyparsing available here
|
Nov. 8, 2019, 12:09 p.m. |
+ 1 |
for Comment
oLeBeLo: Wow! Short and clever solution. Would you be willing to share the logic behind it?
|
Oct. 18, 2019, 7:13 p.m. |
+ 1 |
for Comment
kudinov.feodor: thx, found variable starting from number
|
Oct. 2, 2019, 12:20 p.m. |
+ 1 |
for Comment
barrettpaulj: I like this, using max to help out is something I should do more of myself. Shows good understanding...
|
Sept. 12, 2019, 9:19 p.m. |
+ 1 |
for Comment
krsfvde: seems to be the simplest one out there
|
Aug. 7, 2019, 10:54 a.m. |
+ 1 |
for Comment
DragonMachinations: Interesting choice to use % 15 instead of doing an "and" bool.
|
Aug. 2, 2019, 8:41 p.m. |
+ 1 |
for Comment
evrur97: This is very clever. Pad the string with the underscore and then clip it if not needed. Well done!
|
July 31, 2019, 12:29 a.m. |
+ 1 |
for Comment
evrur97: Function inside a function. Clever!
|
July 30, 2019, 11:28 p.m. |
+ 1 |
for Comment
evrur97: Nice use of the numpy library. Why reinvent the wheel, right?
|