Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
oduvan: using key=text.lower().count looks better for me too then key=lambda ch: text.lower().count(ch)
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
Cjkjvfnby: Syntax overview: #1-2 garbage comments #18 strange description of assignment. And you never meet her...
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
oduvan: I would like to thank you for this comment :)
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
veky: > Cool. So is your comment (and it confirms my theory "the shorter the code, the longer the explanat...
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
Cjkjvfnby: no: **p = list(map(lambda x:None, METALS))** yes: **p = [None] * len(METALS)** no: **if p[idx] == No...
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
veky: > Although it's not really a big deal, I am curious of how should I use python effectively in compar...
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
veky: https://www.python.org/doc/essays/list2str/ I hate nonURLs too. :-)
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
veky: Your big problem is that you're writing C. More precisely, you write code that would be fast if it w...
|
Dec. 9, 2014, 9:48 a.m. |
+ 1 |
for Comment
mysteri0n: Can you explain this in details: > If we have two points (a,b) and (c,d), perpendicular direction to...
|
April 27, 2014, 9:27 p.m. |
+ 1 |
for Comment
bryukh: > Hide *if __name__ * section. This already works for the new publications (we remove name-main bloc...
|
April 27, 2014, 9 p.m. |
+ 1 |
for Comment
PositronicLlama: If you use the "Run & Check" button in the editor, your module will be executed as a "main" module i...
|
April 27, 2014, 2:08 p.m. |
+ 1 |
for
Shortest-veky
|
April 27, 2014, 12:57 p.m. |
+ 3 |
for
First-blaxmi
|
April 27, 2014, 12:57 p.m. |
+ 1 |
for
Shifty-PositronicLlama
|
April 27, 2014, 12:54 p.m. |
+ 1 |
for
First-coells
|
April 27, 2014, 9:23 a.m. |
+ 1 |
for Post
Incorrect description of 16-bit packed messages?
|
April 27, 2014, 9:02 a.m. |
+ 1 |
for Comment
suwanditan: It is, actually a binary manipulation. Let me illustrate with sample 'hi' message. For bit message w...
|
April 27, 2014, 9:02 a.m. |
+ 1 |
for Comment
hamukazu: I didn't understand the specification of the 7-bit packing when just looking at the comment here. Th...
|
April 27, 2014, 9 a.m. |
+ 1 |
for Post
need a hint for 7 bit conversion
|
April 27, 2014, 9 a.m. |
+ 1 |
for Comment
andreusan: As it turns out, the 7-bit packed representation corresponds to GSM SMS 7 bit encoding as described ...
|
April 27, 2014, 8:56 a.m. |
+ 1 |
for
Perpendicular-bryukh
|
April 27, 2014, 8:56 a.m. |
+ 1 |
for Comment
Candy_GHL: import re Using module re is a convinient way!~
|
April 27, 2014, 8:55 a.m. |
+ 2 |
for
format format format for t-veky
|
April 27, 2014, 8:48 a.m. |
+ 1 |
for Comment
Cjkjvfnby: > I often still do forget that :/ Just reread code before publishing, it helps :) I use IDE to write...
|
April 27, 2014, 8:35 a.m. |
+ 1 |
for Post
Request features for code review.
|
April 27, 2014, 8:32 a.m. |
+ 1 |
for Comment
Cjkjvfnby: > I just wanted to get well commented the binary-search method I developped over years of writing al...
|
April 27, 2014, 8:16 a.m. |
+ 1 |
for Comment
bryukh: + for the comments, - for pep8.
|
April 27, 2014, 7:44 a.m. |
+ 1 |
for Comment
veky: You know my opinion on this. Strongly against. You're trying to solve a problem you yourself made. P...
|
April 27, 2014, 7:34 a.m. |
+ 1 |
for Comment
Cjkjvfnby: Put comment only if it is necessary. You solution shows how not to comment. * Some of you comments s...
|
April 27, 2014, 7:33 a.m. |
+ 1 |
for Comment
macfreek: I would not hide comments, but it may be a good idea to make the colour different from comments and ...
|
April 26, 2014, 9:31 p.m. |
+ 1 |
for Comment
nickie: For anyone interested in an explanation of this solution, see [my comment](http://www.checkio.org/mi...
|
April 26, 2014, 9:31 p.m. |
+ 1 |
for
Two rules-nickie
|
April 26, 2014, 9:21 p.m. |
+ 1 |
for Post
How to measure performance?
|
April 26, 2014, 8:57 p.m. |
+ 1 |
for Comment
bryukh: If you want to see here another people, then remove tag "feedback". This tag close a post for owner ...
|
April 26, 2014, 8:57 p.m. |
+ 1 |
for Comment
bryukh: Almost all "orange" tags are restricted (except sticky). **feedback** -- owner and admins **for\_wor...
|
April 26, 2014, 8:43 p.m. |
+ 1 |
for Comment
veky: Now I realized I haven't answered the question you really wanted to ask. Knuth is a complex personal...
|
April 26, 2014, 6:58 p.m. |
+ 1 |
for Comment
veky: Sorry if I offended you. I just find it incomprehensible that someone can know so much about program...
|
April 26, 2014, 6:54 p.m. |
+ 1 |
for Comment
veky: You know, format is also a function. format(x, "+.2f") is much clearer for the first part.
|
April 26, 2014, 6:41 p.m. |
+ 1 |
for Post
Proper way to check if sequence is empty.
|
April 26, 2014, 6:30 p.m. |
+ 1 |
for Comment
Cjkjvfnby: First you check if object evaluates to bool, second you check if length of object is 0. For builtin ...
|
April 26, 2014, 6:27 p.m. |
+ 1 |
for Comment
veky: Of course. You're writing a middle-sized novel, instead of a program. This is _not_ what Knuth meant...
|
April 26, 2014, 6:26 p.m. |
+ 1 |
for Comment
bryukh: Thanks. It is interesting reading.
|
April 26, 2014, 6:25 p.m. |
+ 1 |
for Comment
veky: > Nice binary search, I like it :) You can use it in any open source software. You don't even have t...
|
April 26, 2014, 6:20 p.m. |
+ 2 |
for
Third-Sim0000
|
April 26, 2014, 6:19 p.m. |
+ 1 |
for Comment
Sim0000: Thank you for the detailed explanation ;-)
|
April 26, 2014, 6:12 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...
|
April 26, 2014, 5:35 p.m. |
+ 1 |
for Comment
veky: This is complexity, not pure math. :-) But yeah, I was getting nervous for having to escape to float...
|
April 26, 2014, 5:35 p.m. |
+ 1 |
for Comment
bryukh: Your Math-Fu is cool :)
|
April 26, 2014, 5:35 p.m. |
+ 2 |
for
Optimal-veky
|
April 26, 2014, 3:48 p.m. |
+ 1 |
for Post
Task Tags
|
April 26, 2014, 3:20 p.m. |
+ 2 |
for
First-ignalion
|
April 26, 2014, 12:23 p.m. |
+ 1 |
for Comment
Sim0000: > No need to use deque here. list.pop is enough. I agree. > You call area for each point it is super...
|
April 26, 2014, 12:15 p.m. |
+ 1 |
for Comment
guruvyasa: Really good solution (although it is hard for me to make out what is going on). The breaking up into...
|
April 26, 2014, 12:14 p.m. |
+ 1 |
for
Simple recursion-nickie
|
April 26, 2014, 10:02 a.m. |
+ 1 |
for Comment
bryukh: You can define "{:+.2f}" as variable and built string with double format (just the first idea in min...
|
April 24, 2014, 7:27 p.m. |
+ 1 |
for Comment
veky: You don't have to give me likes, of course. And you don't even have to feel guilty about it. I like ...
|
April 24, 2014, 2:22 p.m. |
+ 1 |
for Comment
muraty_2a35f315ff3c425c8ab43fd: You can skip the loop if length of data is less than 10; if len(data) < 10: return False for i in ra...
|
April 22, 2014, 11:28 p.m. |
+ 1 |
for Comment
bryukh: [supported modules](http://www.checkio.org/wiki/Modules/) But for user tasks it's possible to add mo...
|
April 22, 2014, 9:55 p.m. |
+ 1 |
for Comment
bryukh: 1) the button "Stop"? 2) Thanks. We will rework the code editor fully.
|
April 22, 2014, 9:48 p.m. |
+ 1 |
for
First-takapt0226
|
April 22, 2014, 2:30 p.m. |
+ 1 |
for
Second-erik.white.2014
|
April 22, 2014, 2:08 p.m. |
+ 1 |
for
Stack-based-PositronicLlama
|
April 22, 2014, 1:43 p.m. |
+ 1 |
for Comment
Cjkjvfnby: you use default number=1000000 in timeit.
|
April 22, 2014, 1:41 p.m. |
+ 1 |
for
Objection-veky
|
April 22, 2014, 1:35 p.m. |
+ 2 |
for
Digits-PositronicLlama
|
April 22, 2014, 10:44 a.m. |
+ 1 |
for Comment
Cjkjvfnby: Congratulation you have fastest solution here (1 from 8)
|
April 22, 2014, 10:44 a.m. |
+ 1 |
for Comment
veky: You must be kidding... don't at least 10 more people have exactly the same solution? :-)
|
April 22, 2014, 10:36 a.m. |
+ 2 |
for
^-veky
|
April 22, 2014, 10:16 a.m. |
+ 1 |
for Post
About tests and heavy data
|
April 22, 2014, 10:11 a.m. |
+ 1 |
for Comment
Cjkjvfnby: Just **timeit**.
|
April 22, 2014, 8:04 a.m. |
+ 1 |
for
First-bukebuer
|
April 22, 2014, 8:02 a.m. |
+ 1 |
for
Exit checks-macfreek
|
April 21, 2014, 11:26 p.m. |
+ 2 |
for
Yat another code-Ch0bits
|
April 21, 2014, 10:29 p.m. |
+ 1 |
for
Simulated-PositronicLlama
|
April 21, 2014, 8:18 p.m. |
+ 1 |
for
Behold! Your CheckiO news update has arrived!
|
April 21, 2014, 8:15 p.m. |
+ 1 |
for
First-Zophar78
|
April 21, 2014, 7:56 p.m. |
+ 2 |
for
First-takapt0226
|
April 16, 2014, 11:58 a.m. |
+ 1 |
for
First-makoto_yamagata
|
April 16, 2014, 11:57 a.m. |
+ 1 |
for
Rule-based-PositronicLlama
|
April 16, 2014, 11:42 a.m. |
+ 1 |
for
DOX and XOX-veky
|
April 10, 2014, 10:13 a.m. |
+ 1 |
for Comment
Cjkjvfnby: **el for el in array[::2]** is same as **array[::2]**
|
April 10, 2014, 9:34 a.m. |
+ 1 |
for Comment
bryukh: This is an original solution. But this is not "Speedy". For example i took the first two solutions f...
|
April 9, 2014, 7:24 p.m. |
+ 1 |
for
O(n) :-P-veky
|
April 9, 2014, 7:17 p.m. |
+ 1 |
for
eiji-eiji
|
April 9, 2014, 7:12 p.m. |
+ 1 |
for
First-nakanohito_piyo
|