Dec. 19, 2015, 12:04 p.m. |
+ 1 |
for Comment
abe.dillon: You know the pythonic way would be to use a dictionary look-up right? ;-P
|
Dec. 15, 2015, 3:37 a.m. |
+ 1 |
for Comment
ggila: Smart. I love your ending condition !
|
Dec. 14, 2015, 12:30 p.m. |
+ 1 |
for Comment
leusgalvan: Nice trick to make concise definitions.
|
Dec. 13, 2015, 6:16 a.m. |
+ 1 |
for Comment
dsethlewis: I gotta learn how to use itertools. This is the code I wanted to write when I made the mess I actual...
|
Dec. 13, 2015, 6:15 a.m. |
+ 1 |
for Comment
Happiness: Yep, max() is great, but I forgot about this)
|
Dec. 12, 2015, 5:21 a.m. |
+ 1 |
for Comment
xtofl: Quite clear and very pragmatic, to say the least. Using a string representation for the combos makes...
|
Dec. 9, 2015, 3:09 a.m. |
+ 1 |
for Comment
veky: `self` is a weird name in this context. :-) That duplication of code for rows and cols... wouldn't i...
|
Dec. 9, 2015, 3:03 a.m. |
+ 1 |
for Comment
veky: `ele` is a weird abbrevi. :-) They usually don't end with a vowel. Making a new list (via comprehens...
|
Dec. 9, 2015, 2:33 a.m. |
+ 1 |
for Comment
veky: Again, much duplication of code. for limits in '09 az AZ'.split(): if not re.search('-'.join(limits)...
|
Dec. 8, 2015, 12:53 p.m. |
+ 1 |
for Comment
leusgalvan: That max/min trick works like a charm ;)
|
Dec. 8, 2015, 12:28 p.m. |
+ 1 |
for Comment
Blukano: Nice! I'm a beginner with Python, and needed 20 lines of code to solve this problem. Makes me realis...
|
Dec. 8, 2015, 8:18 a.m. |
+ 1 |
for Comment
stenskjaer: Two questions: 1. How great is the need of compiling the regexps? [The docs mention](https://docs.py...
|
Dec. 8, 2015, 8:17 a.m. |
+ 1 |
for Comment
alexkindel: It is very clear, but what is the motivation for keeping the regular expressions separate rather tha...
|
Dec. 8, 2015, 7:57 a.m. |
+ 1 |
for Comment
DanielDou: This is very clever code. :) Gave you a thumbs up! But the flaw in it seems you can bypass those con...
|
Dec. 8, 2015, 6:16 a.m. |
+ 1 |
for Comment
zormit: return sum(data[mid-1:mid+1]) / 2 I found this -1, +1 a bit confusing, because it suggests three ele...
|
Dec. 8, 2015, 6:15 a.m. |
+ 1 |
for Comment
baldyman: fair solution, but it's generally not a good idea for function to have side effects on its arguments...
|