May 19, 2022, 9:50 a.m. |
+ 1 |
for Comment
lxf42: The `[ ... ]` creates the full list in memory and then returns the list. If you use `( ... )` instea...
|
May 19, 2022, 8:46 a.m. |
+ 1 |
for Comment
kalauroma7997: Thanks, man)
|
May 19, 2022, 8:44 a.m. |
+ 1 |
for Comment
lxf42: Using the generator syntax instead of list comprehension would be speedier.
|
May 19, 2022, 8:42 a.m. |
+ 1 |
for Comment
H0r4c3: Thank you!
|
May 19, 2022, 8:41 a.m. |
+ 1 |
for Comment
H0r4c3: Great solution! Short and clear!
|
May 19, 2022, 8:41 a.m. |
+ 1 |
for Comment
arek121281: thx. Print was for test. I am not python expert.
|
May 3, 2022, 11 a.m. |
+ 5 |
for
First-maybe
|
April 22, 2022, 10:15 a.m. |
+ 4 |
for
numpy of course-lxf42
|
April 19, 2022, 9:25 a.m. |
+ 4 |
for
First-Moff
|
April 19, 2022, 9:25 a.m. |
+ 4 |
for
First-keromage
|
April 4, 2022, 7:35 a.m. |
+ 5 |
for
3 Solutions: 1. using numpy, 2. using zip(), 3. using list comprehension -H0r4c3
|
March 24, 2022, 8:10 a.m. |
+ 5 |
for
zip it, man-kalauroma7997
|
March 17, 2022, 7:55 a.m. |
+ 5 |
for
zip rows (1 liner)-juestr
|
March 10, 2022, 9:15 a.m. |
+ 4 |
for
double loop-ddavidse
|
March 3, 2022, 8:50 a.m. |
+ 5 |
for
First-domokdavid
|
Feb. 25, 2022, 10:15 a.m. |
+ 5 |
for
First-akitspace
|
Feb. 17, 2022, 9:25 a.m. |
+ 3 |
for
First-sgrsgr
|
Feb. 17, 2022, 9:16 a.m. |
+ 5 |
for
First-kazuki.h
|
Feb. 17, 2022, 9:15 a.m. |
+ 5 |
for
sympy with creative itertools-Phil15
|
Feb. 14, 2022, 3:55 p.m. |
+ 1 |
for Comment
mindaugas.dadurkevicius: Thank you!
|
Jan. 17, 2022, 2:22 p.m. |
+ 1 |
for Comment
colinmcnicholl: I knew you think it should be 1 degree. I asked you why might it be 45 degree step? If I gave you: t...
|
Jan. 17, 2022, 2:17 p.m. |
+ 1 |
for Comment
asjdhjshdajsd: Great solution! But I think that should rather belong to the "clear" category, shouldn't it?
|
Jan. 17, 2022, 2:15 p.m. |
+ 5 |
for
One line 118 symbols-CDG.Axel
|
Jan. 17, 2022, 2 p.m. |
+ 5 |
for
Transpose using zip-kkkkk
|
Jan. 3, 2022, 12:15 p.m. |
+ 4 |
for
First (='ω'=)-Magu
|
Jan. 3, 2022, 12:10 p.m. |
+ 5 |
for
One line-mindaugas.dadurkevicius
|
Dec. 20, 2021, 9:05 a.m. |
+ 3 |
for
First-sawako.oono
|
Dec. 14, 2021, 9:43 a.m. |
+ 1 |
for Comment
Lumy: sorry i should not have removed the usage example. but was going for the shortest
|
Dec. 14, 2021, 9:41 a.m. |
+ 1 |
for Comment
tssrkt777: Very nice solution. :)
|
Dec. 14, 2021, 9:40 a.m. |
+ 5 |
for
map - zip-CDG.Axel
|
Dec. 14, 2021, 9:39 a.m. |
+ 1 |
for Comment
colinmcnicholl: Thank you for the comment. What are your thoughts on why the step of 45 degrees?
|
Dec. 14, 2021, 9:20 a.m. |
+ 5 |
for
Second-rybld2
|
Dec. 14, 2021, 9:20 a.m. |
+ 5 |
for
Second-BumKlatsch
|
Dec. 14, 2021, 9:15 a.m. |
+ 4 |
for
Adding columns as rows-mlahor
|
Dec. 1, 2021, 3:50 p.m. |
+ 1 |
for Comment
R2R: I like your native scientific approach. I suppose this solution should be categorized as Creative.
|
Dec. 1, 2021, 3:50 p.m. |
+ 1 |
for Comment
gamer995: huge thanks to you!
|
Dec. 1, 2021, 3:50 p.m. |
+ 1 |
for Comment
kkkkk: I could, but it's so deeply nested now.
|
Dec. 1, 2021, 3:50 p.m. |
+ 4 |
for
Where the babies are coming from...-new_hoschi
|
Nov. 24, 2021, 9:17 a.m. |
+ 5 |
for
single line solution-Lucaum_CF
|
Nov. 24, 2021, 9:16 a.m. |
+ 5 |
for
Detailed steps (using "try")-gamer995
|
Nov. 24, 2021, 9:15 a.m. |
+ 5 |
for
Try except-DinRigtigeFar
|
Nov. 24, 2021, 9:01 a.m. |
+ 5 |
for
First-gyahun_dash
|
Nov. 24, 2021, 8:45 a.m. |
+ 4 |
for
First-colinmcnicholl
|
Nov. 24, 2021, 8:35 a.m. |
+ 4 |
for
Direct brute force-kkkkk
|
Nov. 24, 2021, 8:30 a.m. |
+ 4 |
for
set and union of sets-dorellaurent
|
Nov. 24, 2021, 8:10 a.m. |
+ 5 |
for
Short-Rcp8jzd
|
Nov. 24, 2021, 8:06 a.m. |
+ 1 |
for Comment
marcopunteri: why do you pass the " " argument to split?
|
Nov. 15, 2021, 9:46 a.m. |
+ 1 |
for Comment
Vykers: Nice and neat. The last line(return None) is unnecessary
|
Nov. 10, 2021, 9 a.m. |
+ 5 |
for
Bruteforce with set-swagg010164
|
Nov. 9, 2021, 1:09 p.m. |
+ 4 |
for
datetime.datetime + datetime.timedelta-hbczmxy
|
Nov. 9, 2021, 1:04 p.m. |
+ 4 |
for
First total_seconds-Wojtek_Okularczyk
|
Nov. 9, 2021, 12:55 p.m. |
+ 5 |
for
First-artemx8zx
|
Nov. 9, 2021, 8:55 a.m. |
+ 5 |
for
1-liner: len, set, go!-przemyslaw.daniel
|
Nov. 9, 2021, 8:53 a.m. |
+ 1 |
for Comment
Viktor_Ivanov: You are very welcome!;)
|
Nov. 2, 2021, 8:35 a.m. |
+ 3 |
for
Artificial_0.8-Viktor_Ivanov
|
Nov. 2, 2021, 8:34 a.m. |
+ 1 |
for Comment
DeffiX: Thanks for the rating. I found out about Union thanks to Checkio
|
Nov. 2, 2021, 8:33 a.m. |
+ 1 |
for Comment
koborC: really true! Thank you for the advice! ;)
|
Oct. 28, 2021, 11:55 a.m. |
+ 5 |
for
First (long)-ssk8
|
Oct. 26, 2021, 7:45 a.m. |
+ 4 |
for
First-pythonlover365
|
Oct. 21, 2021, 7:55 a.m. |
+ 5 |
for
First-atikin88
|
Oct. 19, 2021, 6:30 a.m. |
+ 5 |
for
First-tokiojapan55
|
Oct. 13, 2021, 3 p.m. |
+ 1 |
for Comment
tssrkt777: It's ok.
|
Oct. 13, 2021, 2:17 p.m. |
+ 5 |
for
First-DeffiX
|
Oct. 13, 2021, 2:11 p.m. |
+ 5 |
for
Zigzag Array-tssrkt777
|
Oct. 13, 2021, 2:11 p.m. |
+ 1 |
for Comment
tssrkt777: I just tryed, it gave me this result: [[5, 6, 7], [10, 9, 8], [11, 12, 13]]
|
Oct. 13, 2021, 2:11 p.m. |
+ 1 |
for Comment
tssrkt777: But it's not possible, if were it fails I would not able publish it.
|
Oct. 13, 2021, 1:17 p.m. |
+ 5 |
for
list access with step, then sum up.-koborC
|
Oct. 13, 2021, 1:11 p.m. |
+ 1 |
for Comment
tssrkt777: Thank you for informing me, can you tell me please on which test this solution works not properly?
|
Oct. 13, 2021, 1:06 p.m. |
+ 5 |
for
simple swapcase-koborC
|
Oct. 13, 2021, 7:20 a.m. |
+ 4 |
for
datetime + dict to trandlate values from Monday-based to Friday-based-ann3leo
|
Oct. 6, 2021, 3:09 p.m. |
+ 1 |
for Comment
karthiksmg136: sure
|
Oct. 6, 2021, 3:09 p.m. |
+ 1 |
for Comment
kalauroma7997: Thanks. I think it's pretty clear.
|
Oct. 6, 2021, 11:15 a.m. |
+ 5 |
for
First-_Chico__5d82cee4f5234e78a5c65e
|
Oct. 6, 2021, 11:10 a.m. |
+ 4 |
for
simple for-Lumy
|
Oct. 6, 2021, 11:10 a.m. |
+ 5 |
for
2-liner-kalauroma7997
|
Oct. 6, 2021, 11:05 a.m. |
+ 4 |
for
Simple-mohamedsleymi2016
|
Oct. 6, 2021, 11 a.m. |
+ 4 |
for
First-rhodeus208
|
Oct. 6, 2021, 11 a.m. |
+ 4 |
for
import re-zwerkoff
|
Oct. 5, 2021, 12:54 p.m. |
+ 1 |
for Comment
veky: In some other languages (and in Python when pattern matching) it is, but during ordinary assignment ...
|
Oct. 5, 2021, 11:27 a.m. |
+ 1 |
for Comment
veky: Well, you aren't really discarding it, you're just giving it an uninteresting name of _. :-)
|
Oct. 5, 2021, 11:26 a.m. |
+ 1 |
for Comment
rybld2: Thank you for your indulgence !
|
Oct. 5, 2021, 11:26 a.m. |
+ 1 |
for Comment
24esun: I'm not sure though, I could be wrong. ^^;
|
Sept. 20, 2021, 3:02 p.m. |
+ 5 |
for
lambda use-Lumy
|
Sept. 20, 2021, 3:01 p.m. |
+ 5 |
for
1-liner: Transposition using zip-Stensen
|
Sept. 20, 2021, 3 p.m. |
+ 5 |
for
Functional-PositronicLlama
|
Sept. 20, 2021, 2:31 p.m. |
+ 5 |
for
First-tokiojapan55
|
Sept. 20, 2021, 2:30 p.m. |
+ 4 |
for
First-yuwai
|
Sept. 20, 2021, 1:56 p.m. |
+ 1 |
for Task
Transposed Matrix
|
Sept. 20, 2021, 1:51 p.m. |
+ 1 |
for Comment
veky: The best teachers are those for whom you don't realize are teachers. ;-]]
|
Sept. 20, 2021, 1:50 p.m. |
+ 1 |
for Comment
veky: That's why I'm here to teach you. :-)
|
Sept. 20, 2021, 1:45 p.m. |
+ 5 |
for
Zigzag Array-cc41516
|
Sept. 20, 2021, 1:43 p.m. |
+ 5 |
for
... and that's how you use islice.-veky
|
Sept. 20, 2021, 1:40 p.m. |
+ 4 |
for
First-libertypi
|
Sept. 20, 2021, 1:35 p.m. |
+ 5 |
for
Simple-kudinov.feodor
|
Sept. 20, 2021, 1:33 p.m. |
+ 5 |
for
First-rybld2
|
Sept. 20, 2021, 1:31 p.m. |
+ 5 |
for
First-alterGNU
|
Sept. 20, 2021, 12:51 p.m. |
+ 1 |
for Task
Zigzag Array
|
Sept. 20, 2021, 9:07 a.m. |
+ 5 |
for
Datetime-fed.kz
|
Sept. 20, 2021, 9:05 a.m. |
+ 5 |
for
strptime-Sim0000
|
Sept. 20, 2021, 9:03 a.m. |
+ 5 |
for
(4 - date.weekday()) % 7-flpo
|