Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
nvie: So long formatting and readability. There's nothing less nifty about this if you would've added some...
|
Nov. 23, 2017, 1:42 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:41 p.m. |
+ 1 |
for Comment
veky: You don't need "fizz_buzz and" at the beginning of line 3. str is a collection too. ;-)
|
Nov. 23, 2017, 1:32 p.m. |
+ 1 |
for Comment
odwl: So you mean return bin(number).count() That is the easiest I have seen so far
|
Nov. 15, 2014, 10:49 p.m. |
+ 1 |
for Comment
veky: At first sight, this is usual high-order functional stuff. But there are a few puzzling details, in ...
|
Oct. 7, 2014, 6:52 p.m. |
+ 1 |
for Comment
artemrudenko: To get rid of i[0] and i[1] you can write: for rshift, cshift in moor: Aslo there is no any need to ...
|
Sept. 29, 2014, 5:56 p.m. |
+ 1 |
for Comment
veky: You can drop the []. "".join(l for ...) is clearer, more direct, uses less memory, and potentially f...
|
Aug. 13, 2014, 10:34 a.m. |
+ 1 |
for Comment
veky: "if len(queue) > 0" is just "if queue".
|
Aug. 12, 2014, 7:37 a.m. |
+ 1 |
for Comment
masero: Hi, as endswith() accepts tuples, isn't better to write for w in words: if w.endswith(tuple(x for x ...
|
Aug. 1, 2014, 1:07 p.m. |
+ 1 |
for Comment
xtofl: nice one! The `zip` doesn't add much, though - you can just as well hand-zip it, and keep the relati...
|
July 28, 2014, 2:38 p.m. |
+ 1 |
for Comment
compscialien: Would be more clear and educational with comments to add context to the code. Many beginners do not ...
|
June 10, 2014, 10:05 p.m. |
+ 1 |
for Comment
veky: "Clear" shouldn't mean enormous code duplication and inventing the wheel from scratch. You should kn...
|
May 18, 2014, 6:17 p.m. |
+ 1 |
for Comment
veky: Maximal product could be negative, in which case your code won't work.
|
April 17, 2014, 2:02 p.m. |
+ 1 |
for Comment
kamikaze: nice. but while you are trying to reduce line count you are violation PEP-8 and readability :)
|
March 24, 2014, 9:31 p.m. |
+ 1 |
for Comment
nickie: I believe we have the same algorithm with a few rather technical differences, affecting performance ...
|
March 1, 2014, 10:43 p.m. |
+ 1 |
for Comment
veky: This is very wrong. docstrings aren't meant to be used like that. They are the help to someone _usin...
|
Feb. 19, 2014, 8:53 a.m. |
+ 1 |
for Comment
guido: It's interesting that you prefer making several passes over the input string just to avoid splitting...
|
Feb. 17, 2014, 11:43 p.m. |
+ 1 |
for Comment
ajmssc: Thanks! Still learning. Did you mean the spacing between operators?
|
Feb. 1, 2014, 1:18 a.m. |
+ 1 |
for Comment
UndeadMonkey: Not very readable, but looks succinct. Perhaps better naming of the variables would have helped.
|
Jan. 25, 2014, 12:24 a.m. |
+ 1 |
for Comment
Flid: I don't know why do people like to write an obfuscated code. Have you ever tried to develop or suppo...
|
Dec. 29, 2013, 6:13 p.m. |
+ 1 |
for Comment
RyanDagg: It is funny how users on this site usually only upvote based on total lines and not on readability. ...
|
Dec. 24, 2013, 11:04 a.m. |
+ 1 |
for Comment
henrifou: In the _checkio function, instead of using : if word != '': It would be more efficient to use a bool...
|