July 9, 2022, 7:02 p.m. |
+ 1 |
for Comment
StefanPochmann: Though apparently an important part of it is implemented in C: [https://github.com/python/cpython/bl...
|
July 9, 2022, 7 p.m. |
+ 1 |
for Comment
Jiyoqisv: can you explain why "-" between two Counter (is Dict) is O(n) ?
|
July 9, 2022, 10:51 a.m. |
+ 1 |
for Comment
4biz18: Had to read and do some thinking to understand this solution. Also interesting info in the comments....
|
June 26, 2022, 11:10 a.m. |
+ 1 |
for Comment
viktor.chyrkin: This is the best solution of yours I've ever seen. Not only yours this is the best solution ever inc...
|
June 24, 2022, 3:35 p.m. |
+ 1 |
for Comment
gmixo: is there exists obfuscation masta badge?)
|
June 23, 2022, 8:05 p.m. |
+ 1 |
for Comment
lxf42: nice solution
|
June 22, 2022, 1:29 a.m. |
+ 4 |
for
14-liner: 2 loops-przemyslaw.daniel
|
June 21, 2022, 1:57 p.m. |
+ 1 |
for Comment
Sinv: Fabulous! Briefly and clearly! I like this way.
|
June 14, 2022, 2:31 a.m. |
+ 1 |
for Comment
robertabegg: What happened to the veky who writes easy to expand on code? :) I guess this was the veky 2014 versi...
|
June 10, 2022, 8:43 p.m. |
+ 1 |
for Comment
lechrudik: I do not understand how? it is possible to write such perfect code
|
May 30, 2022, 6:26 a.m. |
+ 1 |
for Comment
leggewie: I think the answer has at least two components. * talent (to think like a computer) * experience and...
|
May 16, 2022, 10:40 a.m. |
+ 1 |
for Comment
U.V: Fast & Clear !
|
May 11, 2022, 10:11 a.m. |
+ 1 |
for Comment
phongtt2: Great. I didn't know that we can apply operator on Counter data type
|
April 22, 2022, 12:40 p.m. |
+ 1 |
for Comment
Kosuke_Yanai: great 'and' and filter(None, list)!
|
April 9, 2022, 7:17 a.m. |
+ 1 |
for Comment
niilz: very true. thanks for the reminder. I should definitely get more on the docs!
|
April 9, 2022, 7:16 a.m. |
+ 1 |
for Comment
nogiveup: In line 2 using `stack = [""]` avoid `pop()` `IndexError`. It's awesome
|
March 22, 2022, 11:16 a.m. |
+ 1 |
for Comment
lxf42: good reason for me to look into partial and learn a new function :)
|
March 18, 2022, 7:28 p.m. |
+ 1 |
for Comment
BB_8: Hi, could you please explain what happens in this solution? I am new to python programming and not a...
|
March 14, 2022, 11:02 a.m. |
+ 1 |
for Comment
Selindian: Nice. And so I learned something new about the string module and how to use it this way. :-) I like ...
|
March 1, 2022, 10:44 a.m. |
+ 1 |
for Comment
Selindian: Good solution. ... and I have counted spaces. ;-) Maybe I should search for a fitting library next t...
|
Feb. 24, 2022, 5:20 a.m. |
+ 1 |
for Comment
Selindian: I really like your solution learned something new. Thank you!
|
Feb. 24, 2022, 4:59 a.m. |
+ 1 |
for Comment
kdim: very nice
|
Feb. 24, 2022, 4:57 a.m. |
+ 1 |
for Comment
Ylliw: That look easy like this...
|
Feb. 19, 2022, 2:08 p.m. |
+ 1 |
for Comment
Layort: excellent! I'need some time to digest it. :-)
|
Feb. 19, 2022, 1:25 a.m. |
+ 1 |
for Comment
StefanPochmann: Well, yes, the underlying problem in their thinking is the real problem then. I just meant the probl...
|
Feb. 17, 2022, 9:32 p.m. |
+ 1 |
for Comment
Layort: Oh, I haven't seen that 'map' func can be used like this. So interesting! Excellent mind!
|
Feb. 13, 2022, 3:39 p.m. |
+ 1 |
for Comment
Micheal_Yu: XD
|
Feb. 13, 2022, 4:59 a.m. |
+ 1 |
for Comment
ciel: See https://github.com/tric/trick2013 . Perhaps I should have referred IOCCC instead :p
|
Feb. 13, 2022, 4:59 a.m. |
+ 1 |
for Comment
ciel: God. I love it. Maybe you can beat Ruby TRICK contest ^^
|
Feb. 13, 2022, 4:57 a.m. |
+ 1 |
for Comment
viktor.chyrkin: YEAH! REALLY!
|
Feb. 11, 2022, 4:11 p.m. |
+ 1 |
for Comment
StefanPochmann: Hmm, why did you do that? It's overwritten right away anyway.
|
Feb. 5, 2022, 5:51 p.m. |
+ 4 |
for
del a[-1:]-StefanPochmann
|
Feb. 2, 2022, 7:55 a.m. |
+ 1 |
for Comment
tom-tom_f993b3abc4814d4cb5476e: Look at the last assertion in the initial code. The expected result of the function is **67075696949...
|
Feb. 1, 2022, 5:13 a.m. |
+ 1 |
for Comment
viktor.chyrkin: Cool! I like it!
|
Jan. 28, 2022, 12:07 a.m. |
+ 1 |
for Comment
Pouf: Thanks, I see your point. Probably people that don't read "What's New" and code like it's 2.7.
|
Jan. 14, 2022, 3:49 p.m. |
+ 1 |
for Comment
vvm70: It is an awesome way! Statistics module is new for me.
|
Jan. 12, 2022, 9:12 a.m. |
+ 1 |
for Comment
yedage: I’ve only been on this site for a short while and I am still a noob programmer. Learning a lot from ...
|
Jan. 9, 2022, 11:13 a.m. |
+ 1 |
for Comment
Verstov: Now I know about '~'. Thanks! =)
|
Jan. 6, 2022, 4:40 a.m. |
+ 1 |
for Comment
vvm70: Every your code is for me as a masterpiece. **filter(None, list)** is new for me. And your **and** i...
|
Jan. 2, 2022, 9:05 p.m. |
+ 1 |
for Comment
StefanPochmann: Hmm, for what it does, it probably actually *is* a pretty fast implementation.
|
Dec. 24, 2021, 6:16 a.m. |
+ 1 |
for Comment
tom-tom_f993b3abc4814d4cb5476e: Is it more Creative than Clear?
|
Dec. 22, 2021, 3:32 p.m. |
+ 1 |
for Comment
StefanPochmann: Forget that last sentence, I just remembered that it's a special prime and that the hashing code doe...
|
Dec. 22, 2021, 11:17 a.m. |
+ 1 |
for Comment
StefanPochmann: Ok, here it is. With 4000 numbers it takes me about 1 second, with 8000 about 4 seconds. ``` from sy...
|
Dec. 21, 2021, 11:57 p.m. |
+ 1 |
for Comment
StefanPochmann: Ohhhh.... I just had *two* epiphanies. Been wondering about the "ducklings" in your not-yet-publishe...
|
Dec. 21, 2021, 7:07 a.m. |
+ 1 |
for Comment
9Teen90Three: Thank you. I found it valuable because of demonstration of Counter substraction.
|
Dec. 21, 2021, 3:38 a.m. |
+ 1 |
for Comment
StefanPochmann: Wait, what? So I solved it somewhere else, previously? I have no idea what you mean :-) Why I though...
|
Dec. 21, 2021, 3:14 a.m. |
+ 4 |
for
min :-D-StefanPochmann
|
Dec. 21, 2021, 2:56 a.m. |
+ 1 |
for Comment
perimeter: Great! A great example of map's use with more than one iterable.
|
Dec. 17, 2021, 8:49 p.m. |
+ 1 |
for Comment
StefanPochmann: I completely forgot about this, although I had seen the recent notification *"veky liked your commen...
|
Dec. 17, 2021, 4:06 a.m. |
+ 1 |
for Comment
Deadpilot08: I'm digging this lambda thing, def handy.
|
Dec. 14, 2021, 5:34 a.m. |
+ 1 |
for Comment
boris_bondarenko: Cool! Thank you!)
|
Dec. 11, 2021, 2:43 p.m. |
+ 1 |
for Comment
vvm70: I don't remember you or [Phil15](https://py.checkio.org/user/Phil15/) inspired me to write my code, ...
|
Dec. 11, 2021, 7:52 a.m. |
+ 1 |
for Comment
H0r4c3: Nice! Very useful the translate() method!
|
Dec. 9, 2021, 9:11 a.m. |
+ 1 |
for Comment
Phil15: "element _not_ in my_**list**" is not efficient. What is this 1kk? I don't get it. Polygon station m...
|
Dec. 9, 2021, 9:02 a.m. |
+ 1 |
for Comment
Phil15: import warnings; warnings.warn('duplicates')
|
Dec. 9, 2021, 7:05 a.m. |
+ 1 |
for Comment
Phil15: First, I liked the mission. But 1500 as upper bound seems quite small to me. I just did `ugly_number...
|
Dec. 8, 2021, 11:37 p.m. |
+ 1 |
for Comment
HannaAA17: Hello sir, First of all, thanks a lot for the brilliant codes that you share with us. I'm starting t...
|
Dec. 6, 2021, 7:19 p.m. |
+ 1 |
for Comment
StefanPochmann: binging would've worked as well :-P I think searching that string should've been forbidden but searc...
|
Dec. 6, 2021, 4:37 a.m. |
+ 1 |
for Comment
tssrkt777: Very nice solution. :) So minimalistic!!! I like it very much.) Keep doing it.)
|
Dec. 5, 2021, 9:08 p.m. |
+ 1 |
for Comment
Vykers: Whoops, probably didn't resync) Try again, it should be fixed.
|
Dec. 2, 2021, 7:30 a.m. |
+ 1 |
for Comment
Phil15: As you know, up to recently, the first solution published was not visible faster than the others, an...
|
Dec. 1, 2021, 3:06 a.m. |
+ 1 |
for Comment
crazyiori2003: very short!!!
|
Dec. 1, 2021, 3:06 a.m. |
+ 1 |
for Comment
PositronicLlama: That's totally fair, you should write code for CheckiO in the way you enjoy most. For my part, I lik...
|
Dec. 1, 2021, 3:02 a.m. |
+ 1 |
for Comment
vikulin: I was walking with my kids when it suddenly struck me that this whole thing can be shortened to >>> ...
|
Dec. 1, 2021, 3 a.m. |
+ 1 |
for Comment
zlomovsky: Nice :)
|
Dec. 1, 2021, 2:58 a.m. |
+ 1 |
for Comment
Czarinov: Oh, yes, silly me, it's understandable it can't get outta bounds... Again, being tired is not great ...
|
Dec. 1, 2021, 2:51 a.m. |
+ 3 |
for
len of set-Sim0000
|
Dec. 1, 2021, 2:50 a.m. |
+ 4 |
for
re.sub-StefanPochmann
|
Dec. 1, 2021, 2:45 a.m. |
+ 1 |
for Comment
viktor.chyrkin: good Job! I like When people use __import__
|
Nov. 28, 2021, 10:59 a.m. |
+ 1 |
for Comment
CDG.Axel: Thanks for: - 'PEP'[::479] is not 'a good idea' :) - [*iterable] as replacement of list(iterable) (-...
|
Nov. 28, 2021, 4:39 a.m. |
+ 1 |
for Comment
CDG.Axel: Why not this? (1, -1, 0)['()'.find(char)] But thanks for accumulate using idea!
|
Nov. 27, 2021, 9:19 p.m. |
+ 1 |
for Comment
CDG.Axel: Could you explain what it means? Looks like while True, but found no information where it's explaine...
|
Nov. 26, 2021, 5:22 a.m. |
+ 1 |
for Comment
CDG.Axel: Why isn't this instead of maketable? table = list(dict.fromkeys(key + ascii_lowercase + digits))
|
Nov. 23, 2021, 7:03 a.m. |
+ 1 |
for Comment
viktor.chyrkin: Now that's Better! (for me it did not specify only numbers)
|
Nov. 22, 2021, 8:47 a.m. |
+ 1 |
for Comment
Phil15: Great curry and good comment-explanations, as always. I particularly like `blah.__get__(4)` replacin...
|
Nov. 21, 2021, 12:06 a.m. |
+ 1 |
for Comment
viktor.chyrkin: Thanks. I feel much better. :-)
|
Nov. 21, 2021, 12:05 a.m. |
+ 1 |
for Comment
kdim: may be '%-I:%M %p' instead of lstrip('0')?
|
Nov. 21, 2021, 12:04 a.m. |
+ 1 |
for Comment
perimeter: Because 00:* is transformed into 12:* before call to lstrip('0'), so there is no problem (no 0s to l...
|
Nov. 20, 2021, 4:31 p.m. |
+ 1 |
for Comment
viktor.chyrkin: What if: assert compress([None]) == [None] Then?
|
Nov. 18, 2021, 8:41 a.m. |
+ 1 |
for Comment
StefanPochmann: I'd say removing less than nothing shouldn't remove *everything*, like this does for `remove_min_max...
|
Nov. 15, 2021, 5:27 a.m. |
+ 1 |
for Comment
marcopunteri: i like the partial part, it's a way i always forget :)
|
Nov. 11, 2021, 10:50 a.m. |
+ 1 |
for Comment
tssrkt777: Really amazing solution) good of you)
|
Nov. 4, 2021, 10:22 a.m. |
+ 1 |
for Comment
coells: It works very well, thank you for asking ^^ If you asked how did it return the right result, it is q...
|
Nov. 4, 2021, 10:19 a.m. |
+ 1 |
for Comment
tssrkt777: Wow!!! So minimalistic and nice solution! Very good of you. I really like this minimalistic style. U...
|
Oct. 31, 2021, 5:44 p.m. |
+ 4 |
for
10 lines: complex isn't complex-CDG.Axel
|
Oct. 31, 2021, 5:42 p.m. |
+ 1 |
for Comment
CDG.Axel: Thanks for remembering complex numbers for map tasks! It helps to shrink my solution to 10 lines: ht...
|
Oct. 31, 2021, 5:41 p.m. |
+ 1 |
for Comment
viktor.chyrkin: me too
|
Oct. 31, 2021, 5:41 p.m. |
+ 1 |
for Comment
viktor.chyrkin: very good. probably the best one.
|
Oct. 30, 2021, 9:50 a.m. |
+ 1 |
for Comment
Sim0000: In line 6, I can use c.isalnum() instead of c.isalpha() or c.isdigit().
|
Oct. 27, 2021, 4:23 p.m. |
+ 1 |
for Comment
viktor.chyrkin: you spent time on this.
|
Oct. 27, 2021, 12:43 p.m. |
+ 1 |
for Comment
2010min0ru: Thank you for combinatorics lesson :) Maybe now i would not brute force itertools every time to sort...
|
Oct. 25, 2021, 8:49 p.m. |
+ 1 |
for Comment
nig: This is a great solution which I do not know why I haven't thought of it before!
|
Oct. 23, 2021, 7:58 p.m. |
+ 1 |
for Comment
viktor.chyrkin: good job on key=text.lower().count. I learned something new.
|
Oct. 18, 2021, 4:27 p.m. |
+ 1 |
for Comment
lolucky: Wow! i didn't know that you could provide a key for min. That simplifies so many things!
|
Oct. 16, 2021, 8:58 a.m. |
+ 1 |
for Comment
vvm70: The code worthy to figure out!
|
Oct. 14, 2021, 7:05 p.m. |
+ 1 |
for Comment
Darkfoby: original
|
Oct. 13, 2021, 9:20 a.m. |
+ 1 |
for Comment
Adrian_Sanz_Wallace: Nice!
|
Oct. 10, 2021, 5:18 a.m. |
+ 1 |
for Comment
bsquare: Why not a storproc, or a Pivot? Joking ... Nice solution!
|
Oct. 7, 2021, 5:49 p.m. |
+ 1 |
for Comment
sawako.oono: Learned about "partial" for the first time here.\ Also, I was not aware that \n expression can be re...
|
Oct. 7, 2021, 5:46 p.m. |
+ 1 |
for Comment
bsquare: I agree with this, again something learnt today, thanks ;)
|