March 14, 2018, 10:07 p.m. |
+ 1 |
for Comment
veky: Wouldn't `races` be a lot more appropriate name for the argument, than `horses`?
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
veky: Well, that's exactly why UserDict exists (precisely, why it still exists in Py3k). It is much closer...
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
veky: Many other collections don't support indexing, only iteration (dicts, for example). You still could ...
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
nickie: There are two things I don't particularly like in your solution (for all that my opinion is worth, o...
|
Nov. 23, 2017, 1:45 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
shiracamus: I tried to measure the execution time. The machine spec: * Processor: Intel(R)Core(TM)2 CPU 6600 2.4...
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
Asday: Alright, let's look at this, then. ["".join(r[::e])[::4] for e in (1, -1)] This gives you the diagon...
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
coells: To be more precise, I think you're laptop fell of the table and ASCII letters on-screen somehow asse...
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
coells: Good news everyone! The very first solution I have no idea why it works... -- Hubert J. Farnsworth
|
Nov. 23, 2017, 1:44 p.m. |
+ 1 |
for Comment
veky: You could have had even less code here: checkio = { ... # your wonderful dict }.get ;-) (I know that...
|
Nov. 23, 2017, 1:33 p.m. |
+ 1 |
for Comment
oduvan: This is a good question. After rotation - position of figure doesn't changes. And the position of th...
|
May 18, 2014, 10:33 p.m. |
+ 1 |
for Comment
bryukh: This is a very original method :-) I think I've found the problem. Look, this is your command: [[a, ...
|
April 27, 2014, 10:37 p.m. |
+ 1 |
for Comment
Lasica: How about updating task's description (I see many concerns here) with this example? Also you could a...
|
April 25, 2014, 11:17 a.m. |
+ 1 |
for Comment
veky: min(dice)>0 isn't it written?
|
April 17, 2014, 9:20 a.m. |
+ 1 |
for Comment
bryukh: > _X, _R and _P This is my marks for own usage. (For remove, for rework, for perfomance)
|
Dec. 16, 2012, 10:43 a.m. |
+ 1 |
for Comment
Avaris: Yes, I know. For a non-associative operator, they are not the same. But my issue was with the statem...
|
Dec. 2, 2012, 10:38 a.m. |
+ 1 |
for Comment
MrBrushy: Got it now. You start with a map, i.e. a 2D array of positions, containing 'M', None, or a number. T...
|
April 18, 2011, 10:14 a.m. |
+ 1 |
for Comment
axaroth: My solution implements http://en.wikipedia.org/wiki/Shunting-yard_algorithm and for 'a+((b+c)*d)-e' ...
|