Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
veky: Very simple, and I'm actually surprised it works. :-) Few details: line 6: "continue" would much bet...
|
Nov. 10, 2015, 4:54 a.m. |
+ 1 |
for Comment
M157q: Almost same as my solution. Though the different part is the `names()` function. You don't need `red...
|
Oct. 5, 2015, 4:40 a.m. |
+ 1 |
for Comment
sistem13: my decision, same. def checkio(a, b): a = a.split(',') b = b.split(',') result = [x for x in a if x ...
|
July 23, 2015, 1:06 a.m. |
+ 1 |
for Comment
texom512: Short and simple, great! But I give only one point, because it's absolutely not clear...
|
July 9, 2015, 8:29 a.m. |
+ 1 |
for Comment
Cjkjvfnby: There is function in standard library that do the same as **lambda x: abs(x)** you should use it ins...
|
July 9, 2015, 8:29 a.m. |
+ 1 |
for Comment
siebenschlaefer: FYI: ``lambda x: abs(x)`` is equivalent to ``abs``.
|
June 24, 2015, 1:16 a.m. |
+ 1 |
for Comment
hrvoje: The dramatic DIE in the end is a nice touch :)
|
June 8, 2015, 2:03 a.m. |
+ 2 |
for
Triangle Wave-gyahun_dash
|
April 23, 2015, 2:42 p.m. |
+ 1 |
for Comment
FalconJab: Good but the class can be called checkio already, no need for the function ;)
|
April 15, 2015, 2:39 a.m. |
+ 1 |
for Comment
MMM_AAA_NNN: I strongly support this. It is definitely very difficult task with current conditions. It might howe...
|
Feb. 25, 2015, 1:01 a.m. |
+ 1 |
for Comment
DiZ: Another way would be to construct _all_nodes_ after _cdict_ ;) all_nodes = set(cdict.keys())
|
Feb. 25, 2015, 1:01 a.m. |
+ 1 |
for Comment
veky: > Why they are like to be not so welcomed in your comment? You misunderstood me. I like map and filt...
|
Feb. 25, 2015, 12:59 a.m. |
+ 1 |
for Comment
bryukh: You can use enumerate for 15-16, 27-28 and 35-36 lines.
|
Feb. 19, 2015, 2:23 p.m. |
+ 1 |
for Comment
veky: It might seem trivial to you, but you didn't tell OP how to avoid reduce. all_nodes = set().union(*c...
|
Feb. 14, 2015, 3:06 p.m. |
+ 1 |
for Comment
guido: Nice use of defaultdict(set), and I like the optimization of subtracting the best trace from all_nod...
|
Feb. 9, 2015, 7:24 a.m. |
+ 1 |
for Comment
veky: As I said at the beginning, the problem is you're using a class. How many unionfind structures you n...
|
Feb. 9, 2015, 7:24 a.m. |
+ 1 |
for Comment
veky: > It’s my first time to see this. I'm amazed. :-D The official name is "multiple target assignment"....
|
Feb. 7, 2015, 2:26 p.m. |
+ 1 |
for Comment
veky: Not in any reasonable way I know. :-) But using dict.setdefault in first line enables you to bypass ...
|
Feb. 7, 2015, 2:19 p.m. |
+ 1 |
for Comment
suic: Hi, it's subjective but it would be nicer to repace lines 11-15 with a generator expression and sum:...
|
Feb. 6, 2015, 8:36 a.m. |
+ 1 |
for Comment
veky: (7) it is a way. 4 < 5. But there are better ways. :-) (8) stacks are deques much more than lists. O...
|
Feb. 6, 2015, 7:49 a.m. |
+ 1 |
for Comment
veky: > "coding is definitely an art" It is so with every perfected skill. When listening to Cicero, Roman...
|
Feb. 6, 2015, 1:28 a.m. |
+ 1 |
for Comment
veky: Nice UF. But of course you don't need a class. Line 44: You don't need `list()`. In fact you don't n...
|
Jan. 30, 2015, 1 p.m. |
+ 1 |
for Comment
bryukh: Special Thanks to @Sim0000, @bukebuer, @gyahun_dash, @Hartrik, @veky and @hanpari!
|
Jan. 29, 2015, 3:41 a.m. |
+ 2 |
for
pre_calculation-ciel
|
Dec. 2, 2014, 1:01 a.m. |
+ 1 |
for Comment
vik: The "*" takes a sequance (list, tuple, set) and returns it in a form of positional arguments. Extrem...
|
Nov. 29, 2014, 3:44 p.m. |
+ 1 |
for Comment
viktor.pecheniuk: same:)
|
Nov. 13, 2014, 12:50 a.m. |
+ 1 |
for
You Have 60,000 Friends on CheckiO!
|
Nov. 7, 2014, 9:31 a.m. |
+ 1 |
for Comment
maurice.makaay: The algorithm is not fully correct it seems. print(decode_vigenere( "DOESNOTWORKINALLCASES", "RVSZBV...
|
Nov. 7, 2014, 8:20 a.m. |
+ 1 |
for
GOL via set-hanpari
|
Nov. 4, 2014, 1:01 a.m. |
+ 1 |
for Comment
frichard44: line 7: s[1:] returns empty list if s i empty (so the if s else '' is useless)
|
Oct. 29, 2014, 12:57 a.m. |
+ 1 |
for Comment
maurice.makaay: Lambdas are used for cases where you are not binding an identifier to the created function. In this ...
|
Oct. 8, 2014, 7:08 a.m. |
+ 1 |
for Comment
gyahun_dash: math.radians is useful.
|
Oct. 8, 2014, 1:03 a.m. |
+ 1 |
for Comment
Cjkjvfnby: You solution is potentialy wrong. In precondition: string.ascii_letters + **string.punctuation** You...
|
Sept. 30, 2014, 8:59 a.m. |
+ 1 |
for Comment
Cjkjvfnby: It is special syntax for generator expression inside function call. All function that get iterable a...
|
Sept. 27, 2014, 9:07 a.m. |
+ 1 |
for Comment
DiZ: Here your 'encode/decode' methods are literally the same except '+1/-1' offset. Better to factorize ...
|
Sept. 20, 2014, 4:25 a.m. |
+ 1 |
for Comment
veky: Here is your code, halved: import itertools, operator def trim(lists): if lists: first, *rest = list...
|
Sept. 18, 2014, 11:42 a.m. |
+ 1 |
for Comment
ciel: As a note: [ch for ch in message.lower() if ch in dictionary] can be written as: [ch for ch in messa...
|
Aug. 18, 2014, 8:59 a.m. |
+ 2 |
for
Simple BFS-nickie
|
July 27, 2014, 3:27 a.m. |
+ 1 |
for Comment
bryukh: Honestly, for the recent tasks (today or tomorow will be one more chess mission) I took from chessbo...
|
July 10, 2014, 12:55 a.m. |
+ 1 |
for
Everything you need to know about hints!
|