March 23, 2020, 11:50 a.m. |
+ 1 |
for Comment
veky: When do you want to return x? Each time through the loop, or after the loop?
|
Dec. 10, 2019, 8:27 a.m. |
+ 1 |
for Comment
obone: Looks truly creative. :)
|
Dec. 4, 2019, 10:08 a.m. |
+ 1 |
for Comment
davinci7777: Love the single line solutions!
|
Nov. 17, 2019, 7:51 p.m. |
+ 1 |
for Comment
9maksim: Good
|
Nov. 10, 2019, 10:38 a.m. |
+ 1 |
for Comment
gssanyam12: can anyone please explain this code?
|
Nov. 9, 2019, 7:54 p.m. |
+ 1 |
for Task
Second Index
|
Jan. 9, 2017, 3:43 p.m. |
+ 1 |
for Comment
znatny_kulish: hey, your vrbls nms make the code unrdbl :))
|
Oct. 28, 2016, 3:08 a.m. |
+ 1 |
for Comment
foromer4: complicated :)
|
Oct. 23, 2016, 8:31 a.m. |
+ 1 |
for Comment
oduvan: I didn't expect that it is possible to be solved by RE only :)
|
Oct. 19, 2016, 3:34 p.m. |
+ 1 |
for Comment
maughan.john: Nice explanation of 'or' operator. I've read and reread that section in Learning Python by Mark Lutz...
|
May 20, 2016, 6:39 p.m. |
+ 1 |
for Comment
SamSchurter: I like the short circuit operator. Nice short code.
|
Feb. 27, 2016, 5:10 p.m. |
+ 1 |
for Comment
nickie: Holy cow...
|
Feb. 27, 2016, 5:10 p.m. |
+ 1 |
for Comment
Legat: This is just unbelievable!! :)
|
Feb. 20, 2016, 9:10 a.m. |
+ 1 |
for Comment
aaselivanov.10.03: That's awesome, I think =D
|
Feb. 2, 2016, 3:45 p.m. |
+ 1 |
for Comment
ludek.reif: Nice solution.
|
Jan. 28, 2016, 8:02 a.m. |
+ 1 |
for Comment
karlwolters1992: I think 2,99$ is a fair price. It would be a very goof price if people could pauze their subscriptio...
|
Jan. 21, 2016, 7:03 p.m. |
+ 1 |
for Comment
veky: Yup, that's exactly why I said it reminds me. :-)
|
Jan. 21, 2016, 6 p.m. |
+ 1 |
for Comment
veky: I meant [this](http://www.vanamo.net/hupi/count_the_number_of_f.htm). :-)
|
Jan. 21, 2016, 4:57 p.m. |
+ 1 |
for Comment
veky: This solution reminds me of that silly task "Count the number of F's". :-D
|
Jan. 21, 2016, 4:56 p.m. |
+ 1 |
for Comment
drobotnik: I didn't realise combnations preserved order :)
|
Jan. 21, 2016, 4:55 p.m. |
+ 1 |
for Comment
jkaluzka: I did not know that this can be solve only by using regex, great solution !
|
July 26, 2015, 11:45 a.m. |
+ 3 |
for
While Looping, no hints-DavidJones
|
July 24, 2015, 8:48 a.m. |
+ 1 |
for Comment
Butch: Magic!
|
July 17, 2015, 5:55 a.m. |
+ 1 |
for Comment
nlaurance: smart!
|
June 30, 2015, 11:55 a.m. |
+ 1 |
for Comment
ILQU: Great! That's a new way to solve.
|
June 29, 2015, 6:37 a.m. |
+ 1 |
for Comment
fariik: very clear
|
June 24, 2015, 6:13 p.m. |
+ 1 |
for Comment
veky: That's why I said "appear". :-)
|
June 24, 2015, 4:05 p.m. |
+ 1 |
for Comment
veky: Contextual education is tough. You don't just pull a concept out of a hat, you have to find the cont...
|
June 24, 2015, 4:02 p.m. |
+ 1 |
for Comment
veky: # Ceci n'est pas un comment. Python is not Markdown. :-P
|
June 24, 2015, 3:45 p.m. |
+ 1 |
for Comment
veky: Yes, but much simpler would be while abs(v**v-n) > err: Of course, in new Python you can use `math.i...
|
June 24, 2015, 3:43 p.m. |
+ 1 |
for Comment
veky: ...but those slices appear like they have nothing in common. Which is [not true](http://www.checkio....
|
June 24, 2015, 3:43 p.m. |
+ 3 |
for
Ordered-veky
|
June 24, 2015, 3:20 p.m. |
+ 1 |
for Comment
veky: I loved the ["D"][0][0] part. :-D
|
June 24, 2015, 5:20 a.m. |
+ 1 |
for Comment
hrvoje: Learned about takewhile from your solution, very creative use - thank you :)
|
June 24, 2015, 5:18 a.m. |
+ 1 |
for Comment
hrvoje: Love the double a<x<b notation. Cool!
|
June 23, 2015, 1:16 p.m. |
+ 1 |
for Comment
hrvoje: Very clever, loved the s[i//3:9:3] part. :)
|
June 20, 2015, 4:26 p.m. |
+ 1 |
for Comment
Butch: Clear indeed
|
June 6, 2015, 12:55 p.m. |
+ 1 |
for Comment
admiral_proton: The import as is nice, but a simple date would have been enough, no need for datetime here
|
June 5, 2015, 7:20 p.m. |
+ 1 |
for Comment
StefanPochmann: Disproof: From goal state, just swap blue with yellow. You can't solve it because you never turn rin...
|
June 5, 2015, 12:52 p.m. |
+ 1 |
for Comment
StefanPochmann: Nice one, although using `enumerate` would've been better.
|
June 5, 2015, 12:44 p.m. |
+ 2 |
for
modified ale1ster-StefanPochmann
|
June 5, 2015, 12:31 p.m. |
+ 1 |
for Comment
StefanPochmann: Hmm... you never put anything in "visited".
|
April 15, 2015, 5:27 a.m. |
+ 1 |
for Comment
amon759: what i've understood is that FP is definetely evil.
|
April 8, 2015, 3:36 p.m. |
+ 1 |
for Comment
e.roboda: excellent!
|
March 1, 2015, 5:16 a.m. |
+ 1 |
for Comment
ricardo0y: clear and concise
|
Feb. 26, 2015, 4:09 p.m. |
+ 1 |
for Comment
Arandomusername: Pretty smart, but regex steals a lot of performance
|
Feb. 22, 2015, 9:33 a.m. |
+ 1 |
for Comment
veky: Your renaming is interesting. :-) And u is unneeded.
|
Feb. 11, 2015, 10:08 a.m. |
+ 1 |
for Comment
JeremyJustus: I'll need to meditate on this one.
|
Feb. 9, 2015, 9:53 a.m. |
+ 1 |
for Comment
bryukh: You are totally right. Thanks! Fixed.
|
Feb. 9, 2015, 7:22 a.m. |
+ 1 |
for Comment
bryukh: > Or if you mean the parentheses, it’s just a matter of style :-) Yep :-) Got it.
|
Feb. 5, 2015, 4:37 a.m. |
+ 1 |
for Comment
BossRaker: this is cray...
|
Feb. 2, 2015, 8:07 a.m. |
+ 1 |
for Comment
veky: Cool idea, can be onelined without much problems. checkio=c=lambda s,w=1:len(s)and max([s[0]+c(s[2:]...
|
Sept. 20, 2014, 12:26 p.m. |
+ 1 |
for Comment
veky: > About list.index, the value of the digit is unknown; only the value of the remainder is known. Whi...
|
Sept. 20, 2014, 12:13 p.m. |
+ 1 |
for Comment
veky: See divmod builtin, and optionally operator.itemgetter. Also, list.index might come handy in line 11...
|
Sept. 20, 2014, 12:05 p.m. |
+ 3 |
for
Compressed-nickie
|
Sept. 16, 2014, 4:50 p.m. |
+ 4 |
for
1-liner join-nickie
|
Sept. 16, 2014, 4:49 p.m. |
+ 1 |
for Comment
nickie: Do you need the [:] here?
|
Sept. 15, 2014, 6:46 a.m. |
+ 5 |
for
Compressed-nickie
|
Sept. 15, 2014, 6:45 a.m. |
+ 1 |
for Comment
nickie: There you go...
|
Sept. 9, 2014, 7:32 a.m. |
+ 1 |
for Comment
xtofl: Eval is useful for executing logic you don't know upfront. So I would rather leave 'eval' for cases ...
|
Sept. 9, 2014, 5:15 a.m. |
+ 1 |
for Comment
ematorose: Forgot you could import as dt -- makes it shorter! Thanks
|
Sept. 4, 2014, 1:03 p.m. |
+ 1 |
for Comment
marius_eduard: Smart solution. Thanks!
|
Sept. 4, 2014, 8:07 a.m. |
+ 1 |
for Comment
Cjkjvfnby: May be it is easy for you because you dont know how to do it in normal way :)
|
Sept. 3, 2014, 3:45 p.m. |
+ 1 |
for Comment
hanpari: Ehm, why so complicated? :)
|
Sept. 3, 2014, 8:35 a.m. |
+ 3 |
for
Indexcept-veky
|
Aug. 31, 2014, 4:46 p.m. |
+ 3 |
for
i_love_regexp-Kerulen
|
Aug. 31, 2014, 4:39 p.m. |
+ 3 |
for
Re longest match-nickie
|
Aug. 30, 2014, 5:10 p.m. |
+ 1 |
for Comment
nickie: Well, a union-find indeed, but not like the one they teach... :-) And you could have stopped searchi...
|
Aug. 30, 2014, 5:01 p.m. |
+ 1 |
for Comment
nickie: I think that the price you pay for sorting is much higher than what you gain.
|
Aug. 30, 2014, 4:58 p.m. |
+ 1 |
for Comment
nickie: Well, I very much doubt that it would have been "Speedy" then...
|
Aug. 29, 2014, 2:26 p.m. |
+ 1 |
for Comment
veky: Well, the point of lists is that they are mutable. :-)
|
Aug. 29, 2014, 2:23 p.m. |
+ 1 |
for Comment
veky: I don't understand, what exactly is the problem with dct.setdefault(k, []).append(v) ? It _is_ much ...
|
Aug. 29, 2014, 11:45 a.m. |
+ 2 |
for
Iterable-KaanGenc
|
Aug. 29, 2014, 5:41 a.m. |
+ 1 |
for
Haunted Seas
|
Aug. 23, 2014, 5:52 p.m. |
+ 2 |
for
Magnum opus-veky
|
Aug. 23, 2014, 5:52 p.m. |
+ 1 |
for Comment
veky: * Note the smiley at the end of line 1. ;-) * Find how many Python keywords are in the essay. ;-) * ...
|
Aug. 23, 2014, 4:56 p.m. |
+ 2 |
for
decorator-Sim0000
|
Aug. 22, 2014, 11:52 a.m. |
+ 1 |
for Post
Tests are weak, cause static.
|
Aug. 20, 2014, 9:52 p.m. |
+ 1 |
for Comment
nickie: It depends. If you intend this to be a **simple** task, you can even remove the limit of 7 rounds al...
|
Aug. 20, 2014, 3:53 p.m. |
+ 1 |
for Comment
oduvan: you mean url? Cuz I see their both are the same
|
Aug. 18, 2014, 9:30 a.m. |
+ 2 |
for
Brainf**k-ciel
|
Aug. 16, 2014, 6:53 a.m. |
+ 1 |
for Comment
bryukh: What is the question?
|
Aug. 12, 2014, 9:05 a.m. |
+ 2 |
for
battery-veky
|
Aug. 12, 2014, 7:26 a.m. |
+ 1 |
for Comment
ArchTauruS: I know I forgot to use re :)
|
Aug. 10, 2014, 7:49 a.m. |
+ 1 |
for Comment
bryukh: I added a sentence for example. Maybe this will make the example clearly.
|
Aug. 10, 2014, 5:23 a.m. |
+ 1 |
for Comment
bunnychai: ring 1 does not moves four times, it means moving ring 4 for one time...
|
July 30, 2014, 5:12 p.m. |
+ 1 |
for Comment
veky: Too many lists and lambdas, but a nice idea. :-)
|
July 26, 2014, 12:59 p.m. |
+ 1 |
for Task
Berserk Rook
|
July 26, 2014, 12:24 p.m. |
+ 3 |
for
First-panaro32
|
July 26, 2014, 9:08 a.m. |
+ 1 |
for Task
Pawn Brotherhood
|
July 26, 2014, 7:09 a.m. |
+ 1 |
for Post
The new mission "Place Queens"
|
July 25, 2014, 6:47 p.m. |
+ 1 |
for Task
Place Queens
|
July 24, 2014, 1:45 p.m. |
+ 2 |
for
Irrational-veky
|
July 23, 2014, 9:38 a.m. |
+ 1 |
for Task
Remove Accents
|
July 23, 2014, 6:40 a.m. |
+ 1 |
for Task
Solution for Anything
|
July 21, 2014, 12:24 a.m. |
+ 2 |
for
Refactored-nickie
|
July 21, 2014, 12:22 a.m. |
+ 2 |
for
checkio = sum-Talim42
|
July 20, 2014, 7:57 p.m. |
+ 3 |
for
lispy-5-SimonMontford
|
July 16, 2014, 10:01 p.m. |
+ 2 |
for
re.sub-kameranis
|
July 10, 2014, 9:03 p.m. |
+ 1 |
for
First-antonio081014
|