April 30, 2015, 5:47 p.m. |
+ 1 |
for Comment
tommycarstensen: @bryukh thanks for the merge, @arma thanks for the pull request, @Sim0000 thanks for the additional ...
|
April 30, 2015, 3:55 p.m. |
+ 1 |
for Comment
tommycarstensen: Thanks for pointing me to the GitHub repository arma. I will add my example and the one provided by ...
|
April 30, 2015, 3:55 p.m. |
+ 1 |
for Comment
Sim0000: I try your code. I found a problem your code fail. The correct answer is 3, but your code returns 4....
|
April 30, 2015, 12:34 p.m. |
+ 1 |
for Comment
Jemmity: Nicely done - I knew I should be able to do something like that lambda. I'll try to remember for nex...
|
April 30, 2015, 12:32 p.m. |
+ 1 |
for Comment
tommycarstensen: @arma Thanks for replying. I think you got the right answer for the wrong reason. I'm still looking ...
|
April 27, 2015, 5:22 p.m. |
+ 1 |
for Comment
tommycarstensen: This should be under speedy, no? Did you think of the algorithm yourself? If not, can you post a ref...
|
April 21, 2015, 7:17 p.m. |
+ 1 |
for Comment
Cjkjvfnby: readability vs optimization. IMHO in most cases readability wins
|
April 7, 2015, 1:17 p.m. |
+ 1 |
for Comment
Kaan: I found your is_alternating function very clear to read. I like that the list comprehensions are cle...
|
April 7, 2015, 1:16 p.m. |
+ 1 |
for Comment
Riddick: good creative work!
|
April 7, 2015, 1:15 p.m. |
+ 1 |
for Comment
aureooms: Instead of the `if` branch, you could use counter += number & 1 You can also remove the parentheses ...
|
April 6, 2015, 11:29 a.m. |
+ 1 |
for Comment
bryukh: Yep, honestly I thought it's not hard mission but results shows that is it :-)
|
April 6, 2015, 11:29 a.m. |
+ 1 |
for Comment
Sim0000: I also agree with this opinion.
|
April 4, 2015, 8:09 p.m. |
+ 1 |
for Comment
bunnychai: I don't know the direct solution. I just try all (with memoization to speed things up).
|
April 4, 2015, 3:51 p.m. |
+ 1 |
for Comment
Riddick: [[3, 4], [8, 4], [1, 7], [9, 6], [3, 6], [1, 3]] Lists with number 4 will be deleted [[1,7], [9,6], ...
|
April 3, 2015, 7:02 p.m. |
+ 1 |
for Comment
user9: Nom-nom-nom :))
|
April 3, 2015, 3:20 p.m. |
+ 1 |
for Comment
Cjkjvfnby: http://www.checkio.org/forum/post/1618/proper-way-to-check-if-sequence-is-empty/
|
April 2, 2015, 1:09 p.m. |
+ 1 |
for Comment
bryukh: Honestly, for the recent tasks (today or tomorow will be one more chess mission) I took from chessbo...
|
March 25, 2015, 9:30 p.m. |
+ 1 |
for Comment
kl65us: Really creative work!
|
March 25, 2015, 8:03 p.m. |
+ 1 |
for Comment
xtofl: Quite clear and very pragmatic, to say the least. Using a string representation for the combos makes...
|
March 24, 2015, 3:56 p.m. |
+ 1 |
for Comment
virajh: You can optimize this by iterating over data once instead of thrice.
|
March 9, 2015, 7:44 p.m. |
+ 1 |
for Comment
nickie: (+1) for the "*a"... :-)
|
March 9, 2015, 5:57 p.m. |
+ 1 |
for Comment
suic: Hi, why try...except? You can easily handle it by _if_ or _and_. E. g.: if array: ... else: return 0
|
March 9, 2015, 5:42 p.m. |
+ 1 |
for Comment
suic: Hi, you can shorten it using _any()_: return any(a.endswith(b) for a, b in permutations(words_set, 2...
|
March 9, 2015, 4:54 p.m. |
+ 1 |
for Comment
pedrobueno: what the *date1 do exactly?
|
March 9, 2015, 4:53 p.m. |
+ 1 |
for Comment
bukebuer: date1 is like (2014, 9, 11), and datetime() also accepts three arguments such as datetime(2014, 9, 1...
|
March 9, 2015, 2:37 p.m. |
+ 1 |
for Comment
maurice.makaay: -1 for posting this under Clear.
|
March 8, 2015, 3:39 p.m. |
+ 1 |
for Comment
suic: Hi, with operator.mul it's more universal, but you can write it also this way: return reduce(int.__m...
|
March 8, 2015, 1:27 p.m. |
+ 1 |
for Comment
bukebuer: It equals to: def count_inversion(sequence): count = 0 for i,n in enumerate(sequence): # for every n...
|
March 8, 2015, 12:40 p.m. |
+ 1 |
for Comment
suic: Hi, 10 is the correct answer. Upon closer inspection: # result # | # V # In (5, 3, 2, 1, 0) there ar...
|
March 5, 2015, 10:49 p.m. |
+ 1 |
for Comment
Fedorovich: Start reading from the end of sum(w in text.lower() for w in words) 1. for w in words - takes the wo...
|
March 5, 2015, 10:48 p.m. |
+ 1 |
for Comment
veky: "Clever compiler" would have to be _much_ more clever than you think. It's perfectly possible that "...
|