Nov. 23, 2017, 1:46 p.m. |
+ 1 |
for Comment
gyahun_dash: I see, yes, it is better to write what you prefer. > nested brackets are pretty confused for me, so ...
|
Sept. 8, 2016, 11:06 p.m. |
+ 1 |
for Comment
Blastus: Congratulations on figuring out how to calculate the age of a ghost! If only your publication had so...
|
Feb. 8, 2015, 2:05 p.m. |
+ 1 |
for Comment
bunnychai: a. max disjoint ring: 1 b. no. of ring to break: 3 i also find it misleading initially, seems more n...
|
Sept. 19, 2014, 8:56 a.m. |
+ 1 |
for Comment
veky: That's not really true. Append at right end is amortized O(1) (https://wiki.python.org/moin/TimeComp...
|
Sept. 17, 2014, 8:46 a.m. |
+ 1 |
for Comment
veky: Now when people ask me how dimpleqonx works, I'll just point them to your code. Thanks. :-D
|
Sept. 1, 2014, 7:33 a.m. |
+ 1 |
for Comment
Eldin: This does not really look like a question :D
|
Aug. 30, 2014, 1:44 p.m. |
+ 1 |
for Comment
veky: Line 25 is head-scratching. Sometimes comprehension is the best option. edges = {(s[:2], s[2:]) for ...
|
Aug. 29, 2014, 8:58 a.m. |
+ 1 |
for Comment
veky: Line 17 is really pointless. :-) You don't need zip inside map. map(sum, p, dp) is ok. Start of line...
|
Aug. 23, 2014, 10:52 p.m. |
+ 1 |
for Comment
bryukh: > For example "mind switcher", your checker said nothing about how to solve task, it is just check r...
|
Aug. 21, 2014, 2:41 p.m. |
+ 1 |
for Comment
Cjkjvfnby: Optimization. Pyhton caches integers (usually it is [-5, 256])
|
Aug. 20, 2014, 9:26 p.m. |
+ 1 |
for Comment
veky: You get a thumb for most pointless encoding here. :-D
|
Aug. 7, 2014, 1:44 p.m. |
+ 1 |
for Comment
bunnychai: I've finally solved this task! Have tried a lot of ways to do the backtracking without success. Then...
|
July 19, 2014, 8:17 a.m. |
+ 1 |
for Comment
Cjkjvfnby: But really he wanted key by second element: print sorted(array, key=lambda x: -x[1]) But really real...
|
July 15, 2014, 10:44 p.m. |
+ 1 |
for Comment
bryukh: [Here](http://effbot.org/zone/default-values.htm) is a good article about that. Mutable data types a...
|
July 6, 2014, 9:31 a.m. |
+ 1 |
for Comment
bryukh: It looks like a solution for "Median" mission, but with the wrong tag.
|
July 2, 2014, 5:12 p.m. |
+ 1 |
for Comment
blabaster: Hmm, pep8-checker? Unfortunately, it can't help with epsilon = 10 ** (-3) # no! epsilon = 1e-3
|
June 20, 2014, 6:29 a.m. |
+ 1 |
for Comment
MagiMaster: You're right that the probability won't necessarily increase smoothly, but it will converge eventual...
|
June 2, 2014, 11:36 p.m. |
+ 1 |
for Comment
Cjkjvfnby: Because it is not radius.
|
June 2, 2014, 11:36 p.m. |
+ 1 |
for Comment
bryukh: Because "2" is not a radius, it's the height of the sphere.
|
May 31, 2014, 7:22 p.m. |
+ 1 |
for Comment
gyahun_dash: return sum(map(abs, itertools.starmap(operator.sub, zip(*map(coords, args))))) You can use simple ma...
|
May 28, 2014, 8:50 a.m. |
+ 1 |
for Comment
Cjkjvfnby: #### 1. You should have bage "Line saver" :) For saving 2 lines in line 13 and one in line 15. #### ...
|