April 7, 2022, 3:02 p.m. |
+ 1 |
for Comment
Guest_5a80b5eb: I agree that this is a good solution, but I don't think it really saves memory. The 'sorted' functio...
|
Dec. 15, 2021, 2:42 p.m. |
+ 1 |
for Comment
Magu: nice clear-cut solution. proper use of numpy. :D
|
Oct. 13, 2021, 4:39 p.m. |
+ 1 |
for Comment
CDG.Axel: what reason of ABC base class if you have no abstract methods?
|
Sept. 6, 2021, 4:32 p.m. |
+ 1 |
for Comment
CDG.Axel: btw that solution raise an error "NameError: name 'numbers_array' is not defined" checkio = lambda x...
|
Sept. 6, 2021, 4:29 p.m. |
+ 1 |
for Comment
CDG.Axel: "key=abs" instead of "key=lambda x: abs(x)" is slightly shorter
|
Aug. 5, 2021, 6:16 a.m. |
+ 1 |
for Comment
kizhinov05: You can delete variable temp and just write "for number in seq[i :]"
|
Aug. 3, 2021, 6:03 a.m. |
+ 1 |
for Comment
Luke747: I've got to learn zip!!!
|
July 26, 2021, 1:01 p.m. |
+ 1 |
for Comment
helebed: Nice!
|
July 25, 2021, 4:08 p.m. |
+ 1 |
for Comment
Phil15: Can't really give more advice without any update on the code. I just note that your approach of the ...
|
July 24, 2021, 7:40 p.m. |
+ 1 |
for Comment
Phil15: For vertical shooting `s1[0] == s2[0]`, the lines of `r3` are equal which lead to an unsolvable equa...
|
July 24, 2021, 7:40 p.m. |
+ 1 |
for Comment
Phil15: **Aside note:** `math.hypot` could be of great use instead of `math.sqrt` and if your python is rece...
|
July 15, 2021, 3:01 p.m. |
+ 1 |
for Comment
Kurush: Nice one-liner.
|
July 13, 2021, 11:37 a.m. |
+ 1 |
for Comment
piter239: Default=0 is a nice touch!
|
July 6, 2021, 4:06 p.m. |
+ 1 |
for Comment
leggewie: You can still go plenty shorter. Almost 10 characters shorter, at least.
|
July 6, 2021, 4:03 p.m. |
+ 1 |
for Comment
jsg-inet: Thank you Marcin! In fact it is the same that I include in my original post!! :D :D :D
|
July 5, 2021, 5:04 p.m. |
+ 1 |
for Comment
ipator: super
|
July 4, 2021, 7:03 p.m. |
+ 1 |
for Comment
_Chico__5d82cee4f5234e78a5c65e: No, it could be shorter:) in the second slice [0:1] : you could also write [:1] ;)
|
June 14, 2021, 1:23 p.m. |
+ 1 |
for Comment
leggewie: nice code!
|
May 20, 2021, 7:29 a.m. |
+ 1 |
for Comment
_Chico__5d82cee4f5234e78a5c65e: But otherwise great solution!
|
May 20, 2021, 7:29 a.m. |
+ 1 |
for Comment
_Chico__5d82cee4f5234e78a5c65e: checkio = sorted(numbers_array, key=lambda x: abs(x)) Also works:) Just one line;)
|
May 19, 2021, 7:33 p.m. |
+ 1 |
for Comment
ChromeBrainer: return sorted(numbers_array, key=lambda x: abs(x)) also works here!
|