Dec. 9, 2020, 11:15 a.m. |
+ 1 |
for Comment
Safwan_Samsudeen: Great solution. Is there any advantage to use this method over `statistics.median`? I saw your [othe...
|
Dec. 9, 2020, 6:37 a.m. |
+ 1 |
for Comment
wrandal: "Thanks Veky! You're a big help to novices like me!"
|
Dec. 8, 2020, 4:38 p.m. |
+ 1 |
for Comment
PetrStar: Good afternoon. I understand that this was written 8 years ago, but could you explain the idea?
|
Dec. 3, 2020, 6:19 a.m. |
+ 1 |
for Comment
Striga: I like the use of yield and overall how short the code is.
|
Nov. 27, 2020, 12:36 p.m. |
+ 1 |
for Comment
VincentDog: haha) I'll try to be less weird next time:)
|
Nov. 26, 2020, 5:07 a.m. |
+ 1 |
for Comment
tom-tom_f993b3abc4814d4cb5476e: The tests in the initial code and verification violate preconditions: 1) Not always sorted (look at ...
|
Nov. 25, 2020, 6:07 p.m. |
+ 1 |
for Comment
oduvan: Of course! I was just kidding :)
|
Nov. 25, 2020, 6:03 p.m. |
+ 1 |
for Comment
dagger126: Thanks again. I've learned lots from you!
|
Nov. 25, 2020, 5:55 p.m. |
+ 1 |
for Comment
mailsiraj: Thanks veky for the explanation. The trick is that next is called twice. I guessed it, but I wanted ...
|
Nov. 24, 2020, 9:26 a.m. |
+ 1 |
for Comment
oduvan: will add. Thank you
|
Nov. 19, 2020, 5:06 p.m. |
+ 1 |
for Comment
Phil15: Since we can use python 3.9, I have to say that it has a new module "graphlib". It only contains a "...
|
Nov. 17, 2020, 8:31 a.m. |
+ 1 |
for Comment
mailsiraj: Hi Veky, can you please explain how the map function works here? You are passing the same iterator t...
|
Nov. 10, 2020, 7:08 a.m. |
+ 1 |
for Comment
zwerkoff: Thank You for this code. I learn a lot about Python from your codes. In this code, I learned what is...
|
Nov. 10, 2020, 6:59 a.m. |
+ 1 |
for Comment
SuperSaid09: Ohh, I saw that man, but I coudn't delete my comment :/ thank U everyway
|
Oct. 31, 2020, 12:25 p.m. |
+ 1 |
for Comment
2010min0ru: Ahh why i didn't guessed to use sets this time?!.. Great solution!
|
Oct. 29, 2020, 2:10 p.m. |
+ 1 |
for Comment
2010min0ru: Very educative, functional and cool :)
|
Oct. 26, 2020, 6:22 a.m. |
+ 1 |
for Comment
Claes_Kleinfeld: wow, really really nice!!
|
Oct. 22, 2020, 4:58 a.m. |
+ 1 |
for Comment
2010min0ru: Very beautiful solution!
|
Oct. 21, 2020, 6:14 a.m. |
+ 1 |
for Comment
delapi: Thank you for your elaboration! It's very helpful and I have got it regarding the second question. A...
|
Oct. 19, 2020, 3:12 p.m. |
+ 1 |
for Comment
2010min0ru: Ahh text.endswith is so much more readable than text[-1]!
|
Oct. 19, 2020, 1:30 p.m. |
+ 1 |
for Comment
Phil15: That would definitely unblock things. But IMHO the problem is to put things like `array.array` that ...
|
Oct. 17, 2020, 7:12 p.m. |
+ 1 |
for Comment
vvm70: What about both leap years in today date and in birthday date? Some solutions passes your tests but ...
|
Oct. 16, 2020, 11:57 a.m. |
+ 1 |
for Comment
xiaoyangli.cityu: really readable & educational!!
|
Oct. 15, 2020, 10:56 a.m. |
+ 1 |
for Comment
OutlawSlar: I did not even realize you could access the last element simply by using [-1]. How clever. I've just...
|
Oct. 15, 2020, 10:55 a.m. |
+ 1 |
for Comment
restingsound: Any time a return is executed the remaining code will not be processed.
|
Oct. 15, 2020, 10:43 a.m. |
+ 1 |
for Comment
Phil15: Liked the video. There is a bit of work in the `__init__` and it comes with a few useful (named) att...
|
Oct. 15, 2020, 10:30 a.m. |
+ 1 |
for Comment
2010min0ru: Very interesting and smart solution. Forced me into looking into heapq :)
|
Oct. 14, 2020, 8:40 p.m. |
+ 1 |
for Comment
dhbarnett: This won't work if there are any negative numbers
|
Oct. 4, 2020, 12:07 p.m. |
+ 1 |
for Comment
Oksana_Antropova: I guess, one is `vars(self).update(locals())`? I wonder what are the other 5.
|
Sept. 30, 2020, 2:54 p.m. |
+ 1 |
for Comment
koladen: Will work without value > one, return abs(value - one), value
|
Sept. 25, 2020, 11:14 a.m. |
+ 1 |
for Comment
keh730410: wow that's amazing
|
Sept. 19, 2020, 2:34 p.m. |
+ 1 |
for Comment
piter239: cool and secure way of checking `isinstance(structure, Iterable)` :)
|
Sept. 16, 2020, 4:27 p.m. |
+ 1 |
for Comment
samarism: use of heapq optimizes for time complexity. use of partial function is also elegant!
|
Sept. 10, 2020, 7:20 a.m. |
+ 1 |
for Comment
Phil15: I suppose you are talking about this [calendar change](https://en.wikipedia.org/wiki/Adoption_of_the...
|
Sept. 9, 2020, 8:48 a.m. |
+ 1 |
for Comment
Phil15: There are names like "Jean-Baptiste", or with spaces like "Philippe Cholet", that can not define dic...
|
Sept. 9, 2020, 6:50 a.m. |
+ 1 |
for Comment
kurosawa4434: one more edge case: next_birthday((2021, 3, 1), {'A': (2000, 2, 29), 'B': (2000, 3, 1)}) == (0, {'A'...
|
Sept. 6, 2020, 1:22 p.m. |
+ 1 |
for Comment
bk92: Looks great!
|
Sept. 4, 2020, 7:21 p.m. |
+ 1 |
for Comment
igharok: Great job!
|
Aug. 27, 2020, 6:31 p.m. |
+ 1 |
for Comment
Sasha_Geometricheskij: sorry, i get it)
|
Aug. 27, 2020, 6:28 p.m. |
+ 1 |
for Comment
tom-tom_f993b3abc4814d4cb5476e: Doesn't work for 2-3-4. You've made a nice Pythonic implementation of the completely broken algorith...
|
Aug. 25, 2020, 11:36 a.m. |
+ 1 |
for Comment
Sasha_Geometricheskij: ))
|
Aug. 25, 2020, 11:36 a.m. |
+ 1 |
for Comment
mohammad.moaddi: Lol
|
Aug. 13, 2020, 2:51 p.m. |
+ 1 |
for Comment
pascmedium2: Hello I am new here and I am very pleased to discover a lot to learn.
|
Aug. 3, 2020, 9:18 a.m. |
+ 1 |
for Comment
undead2k: 6 years on and still teaching us how to think outside the box with python. Always a pleasure to see ...
|
July 29, 2020, 8:06 p.m. |
+ 1 |
for Comment
rockwellshabani: This is a deceptively tough mission. Solving it has been frustrating but I"m learning a lot in the p...
|
July 29, 2020, 1:21 p.m. |
+ 1 |
for Comment
lsdda: These are gold comments. Thanks for your time, many years later.
|
July 24, 2020, 5:09 a.m. |
+ 1 |
for Comment
hao.daniel: Like the way that iter() being used with islice. Very cool! Learn something new.
|
July 22, 2020, 9:08 a.m. |
+ 1 |
for Comment
hw15a184: very short
|
July 20, 2020, 7:52 a.m. |
+ 1 |
for Comment
UlanDT: this is amazing!
|
July 17, 2020, 9:27 p.m. |
+ 1 |
for Comment
PythonWithPI: Python has a discrete square root? That's handy!
|
July 16, 2020, 8:41 a.m. |
+ 1 |
for Comment
igharok: Nothing redundant, as usual. Thanks for trick with pre-filled stack.
|
July 16, 2020, 8:40 a.m. |
+ 1 |
for Comment
Pouf: Seems to be sympy's logic, it transforums tuples into Point2D or Point3D implicitely as well. It sho...
|
July 15, 2020, 5:23 a.m. |
+ 1 |
for Comment
Pouf: `sympify` is not even needed, `expand` will gladly take a `str` argument.
|
July 12, 2020, 8 p.m. |
+ 1 |
for Post
New Mission "Triangular Islands"
|
July 9, 2020, 3:30 p.m. |
+ 1 |
for Comment
xg3572: You smells like cool guy
|
July 9, 2020, 3:26 p.m. |
+ 1 |
for Comment
Pouf: Honest question : what would you say is wrong with this code ? It is a bit bruteforce, but I really ...
|
July 5, 2020, 4 p.m. |
+ 1 |
for Comment
Pouf: Thank you !
|
July 5, 2020, 3:32 p.m. |
+ 1 |
for Comment
Pouf: Line 8 `if value[0] == value[~0] in {'"', "'"}:` puzzles me greatly. What is this sorcery ? Edit : n...
|
July 5, 2020, 12:25 p.m. |
+ 1 |
for Comment
Pouf: Very nice use of partition :) Way more reliable than `filter(None, markup)` or `if line`. Edit : it ...
|
July 3, 2020, 5:38 a.m. |
+ 1 |
for Comment
r_tchaik: Very interesting and nice solution. Really creative.
|
July 1, 2020, 10:03 p.m. |
+ 1 |
for Comment
r_tchaik: Nice and creative.
|
July 1, 2020, 10:02 p.m. |
+ 1 |
for Comment
r_tchaik: Interesting solution. I like it.
|
June 17, 2020, 6:40 a.m. |
+ 1 |
for Comment
Booplesnoot: so just for clarification, formatting your solution like this is just a personal style preference an...
|
June 9, 2020, 7 p.m. |
+ 1 |
for Comment
Booplesnoot: Hi there, I would to know how to use logging and pdb for debugging instead of using print :)
|
June 8, 2020, 5:13 p.m. |
+ 1 |
for Comment
Booplesnoot: What does ℤ ≅ ℕ × bool mean?
|
May 17, 2020, 4:03 p.m. |
+ 1 |
for Comment
Sasha_Geometricheskij: Did u miss a slice?
|
May 17, 2020, 2:36 p.m. |
+ 1 |
for Comment
piter239: nice!
|
May 16, 2020, 8:08 p.m. |
+ 1 |
for Comment
lopeslusca11: I thought it was great, especially the Boolean multiplication, I hadn't thought about it.
|
May 13, 2020, 5:35 p.m. |
+ 1 |
for Comment
ruslan92mv: Nice idea
|
May 6, 2020, 11:55 a.m. |
+ 1 |
for Comment
SandeepManilal: Ah ok! Thank you. Very Clever!
|
May 6, 2020, 11:55 a.m. |
+ 1 |
for Comment
SandeepManilal: Hello, Its so short! Could you help me understand this please (whenever you can spare the time)? Tha...
|
May 4, 2020, 7:07 a.m. |
+ 1 |
for Comment
Phil15: The base is `>= 2` so the number 0. tobase(0, b) == '0' # Some codes could give '' if you do not tes...
|
May 2, 2020, 3:33 p.m. |
+ 1 |
for Comment
DiZ: Do not forget that my `T` has always 3 members, not yours ;-) Concerning timing, I bet the longest o...
|
May 2, 2020, 3:33 p.m. |
+ 1 |
for Comment
DiZ: I definitely like the representation you have made, keeping stack and moves in same list; even bette...
|
May 2, 2020, 12:47 p.m. |
+ 1 |
for Comment
hao.daniel: Well articulated. As you may come to know that English is not my mothertongue... 😂
|
May 2, 2020, 11:29 a.m. |
+ 1 |
for Comment
piter239: > How about simply reading the official Python tutorial? :-) It’s funny how many people just skip th...
|
May 1, 2020, 7:18 p.m. |
+ 1 |
for Comment
kim.yangjin: I enjoy comparing your solution with mine, even if I get frustrated all the time :)
|
April 29, 2020, 6:28 p.m. |
+ 1 |
for Comment
piter239: > That’s very weird, since you liked it three days ago. :-P :-D It is weird indeed - today it had 0 ...
|
April 28, 2020, 5:18 p.m. |
+ 3 |
for
reduce(gcd, trees)-piter239
|
April 28, 2020, 5:16 p.m. |
+ 1 |
for Comment
piter239: well, my complete solution (with perhaps unnecessary checks) is def evenly_spaced_trees(trees: List[...
|
April 28, 2020, 5:14 a.m. |
+ 1 |
for Comment
lena-py: Thanks for the exposure to "filter" and unbound methods! ps: are thanks redundant when thumbs-up are...
|
April 28, 2020, 4:26 a.m. |
+ 1 |
for Comment
tea1mer: You know a lot in python
|
April 27, 2020, 7:40 a.m. |
+ 1 |
for Comment
tofguerrier: Warm regards. Christophe.
|
April 26, 2020, 6:23 p.m. |
+ 1 |
for Comment
piter239: FORTH, the passion of my youth! It was about 1998, and there were no real computer to try it out, bu...
|
April 26, 2020, 6:22 p.m. |
+ 1 |
for Comment
dazhi.jiao: This is super elegant!
|
April 26, 2020, 6:21 p.m. |
+ 1 |
for Comment
piter239: "Painstaking" is exactly how I felt about my solution for this. So many things to do by hand... For ...
|
April 26, 2020, 6:30 a.m. |
+ 1 |
for Comment
piter239: This solution brought me to google and find out that there actually is english version of a exceptio...
|
April 26, 2020, 6:11 a.m. |
+ 1 |
for Comment
piter239: Well, THIS is fresh idea! So one don't have to transpose the building to find out it's height? )) Wo...
|
April 26, 2020, 6:03 a.m. |
+ 3 |
for
zero line solution-piter239
|
April 26, 2020, 5:28 a.m. |
+ 1 |
for Comment
tea1mer: I have spend my time on this solution around of two hours for understood, now, I thing this solution...
|
April 25, 2020, 12:19 p.m. |
+ 1 |
for Comment
piter239: good idea ))
|
April 22, 2020, 11:05 a.m. |
+ 1 |
for Comment
piter239: there are quite amusing variants of reincarnation belief systems out there )) But no, the incarnatio...
|
April 21, 2020, 10:41 p.m. |
+ 1 |
for Comment
piter239: wow! Just WOW! What I most loved about my CS study, was the fact I _sometimes_ got in touch with thi...
|
April 21, 2020, 11 a.m. |
+ 1 |
for Comment
igharok: **zip(split)** trick to "turn" multiline on 90 degrees is really awesome
|
April 21, 2020, 10:55 a.m. |
+ 1 |
for Comment
piter239: you are absolutely right!
|
April 21, 2020, 10:33 a.m. |
+ 1 |
for Comment
igharok: Clear and a couple of tricks to learn, as usual
|
April 21, 2020, 8:39 a.m. |
+ 1 |
for Comment
piter239: ok, got it! In the moment I have to explain thing to myself in order to remember it the other day)) ...
|
April 21, 2020, 8:26 a.m. |
+ 1 |
for Comment
piter239: wow)) back to the basics, in an pretty way! I think this is the way it was done in C in early days.
|
April 21, 2020, 7:38 a.m. |
+ 1 |
for Comment
piter239: lambda rules!
|
April 20, 2020, 12:17 p.m. |
+ 1 |
for Comment
megaexception: really enjoing every your solution, everytime can find something new and creative! I've tried `str.t...
|