Nov. 23, 2017, 1:44 p.m. |
+ 1 |
for Comment
Cjkjvfnby: If you change names to normal, most comments can be omitted. It is hard find code inside comments. D...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
Amachua: Documentation is a part of a good code! :)
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
guido: def checkio(labyrinth): # I'm definetely a fan of Dijkstra's (!!!) Funny, Dijkstra is a person, but ...
|
Nov. 23, 2017, 1:40 p.m. |
+ 1 |
for Comment
veky: That's why it is in the puzzle category. ;-) And the title is suggestive.
|
Nov. 23, 2017, 1:40 p.m. |
+ 1 |
for Comment
Amachua: Python 3.x way :) P.S. Why use tuple here? It works fine without it :)
|
Nov. 23, 2017, 1:40 p.m. |
+ 1 |
for Comment
veky: I think I can't. Then abc de fgh finds ch vertically, and it shouldn't. reform is "result form", sho...
|
Nov. 23, 2017, 1:38 p.m. |
+ 1 |
for Comment
veky: It's not prohibited, it's just very confusing. Identifiers starting with double underscore (and not ...
|
Nov. 23, 2017, 1:38 p.m. |
+ 1 |
for Comment
veky: Ok, here goes. First, I really don't get why you take real nice Python ints, and convert them first ...
|
Nov. 23, 2017, 1:32 p.m. |
+ 1 |
for Comment
veky: That's why ":-P" is there. Algorithmic complexity class is one thing. Concrete execution is quite an...
|
Nov. 23, 2017, 1:32 p.m. |
+ 1 |
for Comment
Cjkjvfnby: Just timeit: >>> timeit('1', number=1000000) Out[16]: 0.018496990203857422 >>> timeit('int("1")', nu...
|
Nov. 23, 2017, 1:32 p.m. |
+ 1 |
for Comment
Cjkjvfnby: > Maybe you are right, i simply thought that this is not a big difference for this particular task. ...
|
April 29, 2015, 4:35 a.m. |
+ 1 |
for Comment
nickie: In spite of all the good discussion above and the validity of the arguments in the two links (yes, `...
|
Oct. 2, 2014, 5:39 a.m. |
+ 1 |
for Comment
veky: You can use builtin sum instead of coding it from scratch. And use unpacking in for. return sum(grid...
|
Sept. 30, 2014, 8:51 a.m. |
+ 1 |
for Comment
Cjkjvfnby: Same thing in less chars. Yes it is better :)
|
Sept. 30, 2014, 5:15 a.m. |
+ 1 |
for Comment
Martin.N.Menendez: In my university (UBA-University of Buenos Aires) there is a big discussion about replace Pascal for...
|
Sept. 22, 2014, 7:07 a.m. |
+ 1 |
for Comment
nickie: Well, "globals" and "builtins" should be added to the list of forbidden words... :-) But then again,...
|
Sept. 9, 2014, 7:23 p.m. |
+ 1 |
for Comment
veky: > not how I define the spirit of this game. And that's worth -3 for you? Ok, whatever. But I must la...
|
Sept. 9, 2014, 1:57 p.m. |
+ 1 |
for Comment
Cjkjvfnby: Very bulky. **sorted** return list, no need to list it. You can inherit DisjointSet from dict class ...
|
Sept. 4, 2014, 8:25 a.m. |
+ 1 |
for Comment
Cjkjvfnby: I dont know :) I just comment that you reimplement some functions that present in [operator](https:/...
|
Sept. 4, 2014, 8:20 a.m. |
+ 1 |
for Comment
Cjkjvfnby: 1/ It is checkio fault. Feature with links to user solutions was removed on forum update. We all wai...
|
Aug. 29, 2014, 3:47 p.m. |
+ 1 |
for Comment
gyahun_dash: return len(Counter(x for x in "{:b}".format(number).split('0') if x not in ('', '0')))== 1 Does "{:b...
|
Aug. 27, 2014, 9 a.m. |
+ 1 |
for Comment
ciel: '{:.{decimals}f}'.format(number,decimals=decimals) is also OK (thank you foota: http://www.checkio.o...
|
Aug. 26, 2014, 7:17 a.m. |
+ 1 |
for Comment
Sim0000: Cool rotate!
|
Aug. 25, 2014, 8:21 a.m. |
+ 1 |
for Comment
veky: That's minor problem (and possibly even justified, for detecting invalid commands). Much bigger prob...
|
Aug. 20, 2014, 5:54 a.m. |
+ 1 |
for Comment
blabaster: Wrong. The rule is: "If you have two or more letters with the same frequency, then return the letter...
|
Aug. 19, 2014, 2:11 p.m. |
+ 1 |
for Comment
Cjkjvfnby: http://www.checkio.org/forum/post/1618/proper-way-to-check-if-sequence-is-empty/ you can use str.sta...
|
Nov. 25, 2012, 8:41 p.m. |
+ 1 |
for Comment
profuel_39643665ff7744e3bff926: I feel that votes shouldn't rely on a level. Level means time possible could user spent on site, not...
|
Nov. 7, 2012, 8:12 a.m. |
+ 1 |
for Comment
lrekucki: If you really want a universal check for iterability, you should use `isinstance(x, collections.Iter...
|
Nov. 5, 2012, 8:36 p.m. |
+ 1 |
for Comment
profuel_39643665ff7744e3bff926: These 3 matrix are for simple testing. Global testing is more complex and covers wide range of possi...
|
May 14, 2011, 8:27 p.m. |
+ 1 |
for Comment
limon: oh, man! You are champion of long-code style :)
|
April 29, 2011, 1:15 p.m. |
+ 1 |
for Comment
astynax84: You are welcome :) In this case \w (small) - good replacement for [a-zA-Z0-9], and it also match "_"...
|