Nov. 23, 2017, 1:46 p.m. |
+ 1 |
for Comment
veky: Ahm. Yes, online tutorials are incredibly misleading sometimes. They are usually written by people w...
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
veky: Nice check whether xor has <=1 set bit. :-) But... * range(0, len(image), 4) would probably be clear...
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
Sim0000: Yes, this is your code. Just one more thing. If you return second item of words instead of first one...
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
Sim0000: I have checked your code for all 5040 case. Then 5 case need 9 steps (5293, 9204, 9214, 9241, 9431).
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
veky: Even better. :-) Though, you don't have to listify all your generators, iterators are often complete...
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
veky: Carmichael numbers are not enough, since you're special-casing 3, 5 and 7. Of course it doesn't real...
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
veky: That's why I said "if str is elementary". Of course, if str is elementary, int (what you call "long"...
|
Nov. 23, 2017, 1:44 p.m. |
+ 1 |
for Comment
veky: You still use sorted in a weird way. :-) Line 10 is just points = sorted(data). Line 16, sort has a ...
|
Nov. 13, 2014, 11:43 a.m. |
+ 1 |
for Comment
veky: Ah. I always wondered what kind of people write packages like [this one](https://pypi.python.org/pyp...
|
Oct. 1, 2014, 8:44 p.m. |
+ 3 |
for
First-reviewboy
|
Sept. 23, 2014, 12:10 p.m. |
+ 3 |
for
First-Talim42
|
Sept. 23, 2014, 9:44 a.m. |
+ 5 |
for
Divide et functio-veky
|
Sept. 21, 2014, 4:41 p.m. |
+ 1 |
for Comment
veky: Don't write empty except. It almost never means what you think it means. For example, imagine someon...
|
Sept. 21, 2014, 4:34 p.m. |
+ 1 |
for Comment
veky: Now you're just showing off. But I like it. :-D
|
Sept. 20, 2014, 10:17 a.m. |
+ 1 |
for Comment
veky: Yes, but with 3 xs, my Python died trying to make a list of 1157920892373161954235709850086879078532...
|
Sept. 20, 2014, 9:58 a.m. |
+ 1 |
for Comment
veky: Hm... are you sure you need _three_ 1 <<'s? If I read it correctly, 2 should be enough. In fact only...
|
Sept. 19, 2014, 11:08 p.m. |
+ 1 |
for Comment
veky: Hm... I don't know as much about these things as I would like to, but don't you need polynomial arit...
|
Sept. 19, 2014, 9:35 p.m. |
+ 1 |
for Comment
veky: > If I tell you the true reason, you won't believe. Probably. :-D > I was lazy to write len() three ...
|
Sept. 19, 2014, 9:28 p.m. |
+ 1 |
for Comment
veky: Nice twist. You could have gotten away with slicing (or re.sub), instead of that boring replace. ;-)
|
Sept. 19, 2014, 9:18 p.m. |
+ 1 |
for Comment
veky: ROT13 effect in line 5 is really nice artefact. ;-D But I'm confused... of five lines, you spend one...
|
Sept. 19, 2014, 6:47 p.m. |
+ 2 |
for
Lagrange-pohmelie
|
Sept. 19, 2014, 6:46 p.m. |
+ 4 |
for
First-gyahun_dash
|
July 31, 2014, 2:51 p.m. |
+ 1 |
for Comment
Talim42: Heh. Did you see the new movie? The first half was so close to the original and still it looked real...
|
July 26, 2014, 8:52 p.m. |
+ 1 |
for Comment
veky: "for fun" has many meanings. Everything I write here is "for fun" in a way. :-) But usually behind t...
|
July 26, 2014, 8:52 p.m. |
+ 3 |
for
Get outa here-veky
|
July 22, 2014, 7:11 a.m. |
+ 1 |
for
MoreMathsLessRecursion-SimonMontford
|
July 12, 2014, 2:36 p.m. |
+ 1 |
for Post
My first task :P
|
July 2, 2014, 8:21 p.m. |
+ 4 |
for
Assignment-veky
|
June 30, 2014, 1:20 p.m. |
+ 4 |
for
Could be shorter-veky
|
June 29, 2014, 9:18 p.m. |
+ 5 |
for
sum zip-veky
|
June 29, 2014, 9:16 p.m. |
+ 1 |
for Comment
veky: May I ask why importing two modules, when simple builtin sum would have sufficed? Yes, solution is s...
|
June 28, 2014, 8:41 p.m. |
+ 2 |
for
Friends set-hanpari
|
June 28, 2014, 12:42 a.m. |
+ 5 |
for
First-Sim0000
|
June 28, 2014, 12:36 a.m. |
+ 1 |
for
First-Slepice1
|
June 27, 2014, 9:05 a.m. |
+ 2 |
for
Complex-Talim42
|
June 26, 2014, 9:07 a.m. |
+ 2 |
for
recursive3-ciel
|
June 26, 2014, 9:05 a.m. |
+ 5 |
for
First-Sim0000
|
June 26, 2014, 9:03 a.m. |
+ 4 |
for
Partial-veky
|
June 22, 2014, 3:58 p.m. |
+ 1 |
for Task
The Flat Dictionary
|
June 18, 2014, 11:01 a.m. |
+ 5 |
for
switch-veky
|
June 18, 2014, 10:38 a.m. |
+ 5 |
for
direct calculation-Sim0000
|
May 23, 2014, 10:50 a.m. |
+ 1 |
for Comment
veky: Ah, sorry. I was convinced it had <= like set.
|
May 23, 2014, 9:32 a.m. |
+ 1 |
for Comment
veky: Counter has <= (subset). You can use it instead of having that c.
|
April 17, 2014, 5:46 p.m. |
+ 1 |
for
Objection-veky
|
April 17, 2014, 5:44 p.m. |
+ 4 |
for
First-Sim0000
|
April 13, 2014, 8:42 p.m. |
+ 4 |
for
code<FONT-veky
|
April 13, 2014, 10:41 a.m. |
+ 1 |
for Comment
veky: Obvious. :-P Nitpick: you don't need 0 in slice [:1]... which makes a nice symmetry, p[:i] up to i, ...
|
April 12, 2014, 8:02 p.m. |
+ 1 |
for Comment
veky: BFS. Nice but a bit boring. :-)
|
April 11, 2014, 12:27 p.m. |
+ 1 |
for Comment
veky: Explicit is better than implicit, even when it comes to recursion stack? :-D
|
April 10, 2014, 7:22 p.m. |
+ 3 |
for
Do or do not-veky
|
April 8, 2014, 2:39 p.m. |
+ 2 |
for
Oneliners are evil-hanpari
|
April 8, 2014, 12:55 p.m. |
+ 1 |
for Comment
veky: It's boring precisely because you didn't see what I told you above. :-]]
|
April 7, 2014, 6:15 p.m. |
+ 4 |
for
pbs-veky
|
April 7, 2014, 2:18 p.m. |
+ 1 |
for
First-MichalMarsalek
|
April 6, 2014, 8:12 p.m. |
+ 4 |
for
Short (puzzle)-MichalMarsalek
|
April 6, 2014, 7:35 p.m. |
+ 2 |
for
First-MichalMarsalek
|
April 6, 2014, 7:29 p.m. |
+ 2 |
for
Second-MichalMarsalek
|
April 6, 2014, 5:09 p.m. |
+ 3 |
for
Batteries-veky
|
April 6, 2014, 10:12 a.m. |
+ 1 |
for
gcx11_es/7-gcx11
|
April 5, 2014, 5:33 p.m. |
+ 4 |
for
Short-Sim0000
|
April 4, 2014, 7:06 p.m. |
+ 3 |
for
Ordered-veky
|
April 4, 2014, 1:55 p.m. |
+ 3 |
for
Fast-Sim0000
|
April 4, 2014, 1:34 p.m. |
+ 4 |
for
max-count-bryukh
|
April 3, 2014, 7:12 p.m. |
+ 4 |
for
Winning Pattern style-hanpari
|
April 2, 2014, 8:13 a.m. |
+ 1 |
for
onliner recursive variable size-azmaeve
|
April 1, 2014, 9:31 p.m. |
+ 2 |
for
magic numbers 70,21,15-Sim0000
|
March 31, 2014, 9:57 p.m. |
+ 1 |
for Post
About tests and heavy data
|
March 28, 2014, 9:24 a.m. |
+ 2 |
for
O(1) obfuscated-DiZ
|