March 18, 2015, 10:56 p.m. |
+ 1 |
for Comment
veky: Not magic, just illusionism, as I like to say. :-) Write code, see what's repeated, factor it out; w...
|
March 17, 2015, 10:19 p.m. |
+ 1 |
for Comment
Sim0000: You can make it more simple with **key** parameter of **max** :-) def checkio(text): return max('abc...
|
March 17, 2015, 10:31 a.m. |
+ 1 |
for Comment
veky: And I'm sure you've realized, but for the others: it doesn't matter whether it's length or height, a...
|
March 17, 2015, 10:06 a.m. |
+ 1 |
for Comment
bryukh: I've added the message about None for "FizzBuzz", "Index Power" and "Non-unique elements". Now let's...
|
March 17, 2015, 9:34 a.m. |
+ 1 |
for Comment
bryukh: Honestly, I don't understand how users solve couple missions and THEN make the mistake with prints.
|
March 16, 2015, 10:31 p.m. |
+ 1 |
for Comment
veky: More importantly, every if cond: return 1 else: return 0 is simply "return int(cond)". Switch is not...
|
March 16, 2015, 9:21 p.m. |
+ 1 |
for
Args-CounterSparta
|
March 16, 2015, 9:19 p.m. |
+ 2 |
for
Second-RomanKorbutyak
|
March 16, 2015, 9:18 p.m. |
+ 1 |
for
Simple-robby.daigle
|
March 16, 2015, 8:13 p.m. |
+ 1 |
for Comment
Cjkjvfnby: @BSacheri It is not required to know language to write simple code on it. Syntax can be easy googled...
|
March 16, 2015, 3:37 p.m. |
+ 1 |
for
First-tlemur
|
March 16, 2015, 2:28 p.m. |
+ 1 |
for Comment
guido: def checkio(labyrinth): # I'm definetely a fan of Dijkstra's (!!!) Funny, Dijkstra is a person, but ...
|
March 16, 2015, 12:31 p.m. |
+ 2 |
for
First-lukas.linhart
|
March 16, 2015, 10 a.m. |
+ 1 |
for Comment
alxbol: not pythonic style
|
March 14, 2015, 8:58 a.m. |
+ 1 |
for Comment
caynan: I liked your use of itertools.product, you could/should take in consideration, in case you want to b...
|
March 13, 2015, 6:49 p.m. |
+ 1 |
for Post
After all the hype what do you think about Swift?
|
March 13, 2015, 2:12 p.m. |
+ 1 |
for
Boolean Algebra-migun
|
March 13, 2015, 12:23 p.m. |
+ 1 |
for Comment
veky: (-: I didn't know about "dishonest" characterization. BTW, that `__dict__` is really a fascinating p...
|
March 12, 2015, 9:16 p.m. |
+ 1 |
for Comment
hanpari: Why list? Set of frozensets would be nicer and useful :)
|
March 12, 2015, 7:56 p.m. |
+ 1 |
for Comment
htamas: [Did you mean](http://tr.im/4tbdr): checkio = (lambda N, H, R=range, L=len: (lambda *_:0)(*map(*reve...
|
March 12, 2015, 7:55 p.m. |
+ 2 |
for
Batteries-veky
|
March 11, 2015, 8:34 a.m. |
+ 1 |
for Comment
jeandupont: 1. you should post your code with your question instead of a screen shot. 2. your function prints th...
|
March 10, 2015, 3:26 p.m. |
+ 1 |
for Comment
veky: > Is there anything wrong with my code? Extremely. :-P global doesn't do what you think it does. Thi...
|
March 9, 2015, 4:44 p.m. |
+ 1 |
for
First-koniyasu
|
March 9, 2015, 4:12 p.m. |
+ 1 |
for Post
Mission Ideas
|
March 5, 2015, 9:29 p.m. |
+ 1 |
for Comment
AndrewYoung: Thank you for the advice! Why is isdigit() preferable here over is numeric()?
|
March 4, 2015, 8:34 a.m. |
+ 1 |
for
First-AndrewYoung
|
March 2, 2015, 3:54 p.m. |
+ 1 |
for Comment
veky: Different languages have different rules. Pascal, from where this rule comes originally, had a very ...
|
March 2, 2015, 3:29 p.m. |
+ 1 |
for
First-StaticFuzz
|
March 2, 2015, 9:20 a.m. |
+ 1 |
for Task
Fibonacci Golf
|
March 1, 2015, 12:04 p.m. |
+ 1 |
for Comment
lukas.linhart: Hi! Too much duplicate code here, both functions are exactly the same, character by character, apart...
|
Feb. 28, 2015, 10:35 a.m. |
+ 1 |
for
First-CraigFranklin
|
Feb. 27, 2015, 9:58 a.m. |
+ 1 |
for
twostep-AmaroVita
|
Feb. 27, 2015, 7:53 a.m. |
+ 1 |
for Comment
satoshi.odawara.16: in Python 3: (int)/ (int) = (float) (int)//(int) = (int) in Python 2: (int)/(int) = (int) [See also]...
|
Feb. 26, 2015, 7:45 p.m. |
+ 1 |
for Comment
pytonio: version #2: checkio=lambda w:bool(__import__('re').search('\D+( \D+){2,}',w))
|
Feb. 26, 2015, 1:14 p.m. |
+ 2 |
for
Gordian knot-AdamToth
|
Feb. 26, 2015, 10:19 a.m. |
+ 1 |
for Comment
veky: OMG. Almost _all_ of them perpetuate the myth that variables are boxes you put values into. And of c...
|
Feb. 23, 2015, 4:52 p.m. |
+ 1 |
for Comment
grutte_pier: This one can be done pretty well with pencil and paper :)
|
Feb. 23, 2015, 12:28 a.m. |
+ 1 |
for Post
Tests are weak, cause static.
|
Feb. 22, 2015, 10:43 p.m. |
+ 1 |
for Comment
veky: Nice usage of time module. conv_dict could be much less repetitive if you looked up things like this...
|
Feb. 22, 2015, 12:42 p.m. |
+ 1 |
for Comment
veky: Yes, I know about the state of tests here. :-P I'm speaking idealistically. I didn't mean accented C...
|
Feb. 20, 2015, 8:24 p.m. |
+ 1 |
for Comment
veky: Fizz Buzz: actually very readable. But has a few antipatterns... "not" would surely be better than s...
|
Feb. 20, 2015, 12:47 p.m. |
+ 1 |
for
"Elementary" One-liners Overview
|
Feb. 20, 2015, 10:12 a.m. |
+ 1 |
for
Abusing nonlocal to calculate a sum-grutte_pier
|
Feb. 18, 2015, 9:59 p.m. |
+ 1 |
for
First-abe.dillon
|
Feb. 18, 2015, 9:44 p.m. |
+ 1 |
for
One line-RiordanIX
|
Feb. 18, 2015, 9:37 p.m. |
+ 1 |
for
1-liner re-nickie
|
Feb. 18, 2015, 9:35 p.m. |
+ 1 |
for
52-DiZ
|
Feb. 18, 2015, 6:11 p.m. |
+ 2 |
for
First-paraymond
|
Feb. 18, 2015, 4:54 p.m. |
+ 1 |
for
Three Words-GinnyPennekamp
|
Feb. 18, 2015, 4:36 p.m. |
+ 1 |
for
Recursive lambda-AntoniGoldstein
|
Feb. 18, 2015, 11:06 a.m. |
+ 1 |
for Post
Cheating?
|
Feb. 18, 2015, 11:04 a.m. |
+ 1 |
for Comment
nickie: The issue is not "exec", it could have been "cexe"[::-1] or "e".join("nxc")[1:] or anything producin...
|
Feb. 18, 2015, 9:23 a.m. |
+ 1 |
for Comment
Columpio: oh dear, it hurts your pep8?
|
Feb. 16, 2015, 12:47 p.m. |
+ 1 |
for Comment
veky: As you see from the comments, methodcaller is good from educational point of view. :-) But there is ...
|
Feb. 16, 2015, 11:57 a.m. |
+ 1 |
for
First-wujie
|
Feb. 14, 2015, 9:27 p.m. |
+ 1 |
for Comment
veky: ... and also, -= could be used instead of that weird looking += -(...). :-) But a bigger problem: do...
|
Feb. 14, 2015, 7:58 p.m. |
+ 1 |
for Comment
gethappy: count() counts all entries w in text, but one entry is enough. You can use find() or just: cnt += w ...
|
Feb. 13, 2015, 1:52 a.m. |
+ 1 |
for Comment
Cjkjvfnby: Basic knowledge of python required. Just solve this task on local machine using some python tutorial...
|
Feb. 12, 2015, 2:05 p.m. |
+ 1 |
for Post
[POLL] Method Chaining: Good or Evil?
|
Feb. 11, 2015, 11:52 p.m. |
+ 1 |
for
First-ph63
|
Feb. 11, 2015, 4:31 p.m. |
+ 1 |
for Comment
veky: What's this epidemic separation of return with two empty lines from the rest of the function?? Where...
|
Feb. 10, 2015, 2:48 p.m. |
+ 1 |
for Comment
nkapliev: omg, you are my first reviewer on checkio. good day 1. > You can omit the if … else. Yea, i know abo...
|
Feb. 9, 2015, 7:19 p.m. |
+ 2 |
for
First-theFear
|
Feb. 9, 2015, 6:16 p.m. |
+ 1 |
for
My Hamming.-zebulan
|
Feb. 9, 2015, 5:30 p.m. |
+ 1 |
for
First-Mehau
|
Feb. 6, 2015, 6:56 p.m. |
+ 2 |
for
First-panther-king
|
Feb. 6, 2015, 6:46 p.m. |
+ 1 |
for
defaultdict-ciel
|
Feb. 6, 2015, 6:42 p.m. |
+ 1 |
for
First-dagger126
|
Feb. 6, 2015, 6:21 p.m. |
+ 1 |
for
itemgetter-gyahun_dash
|
Feb. 6, 2015, 5:37 p.m. |
+ 2 |
for
First-Slepice1
|
Feb. 6, 2015, 5:28 p.m. |
+ 2 |
for
booleans-Slepice1
|
Feb. 6, 2015, 4:17 p.m. |
+ 1 |
for
Digits Multiplication -schanjr
|
Feb. 6, 2015, 12:08 p.m. |
+ 1 |
for
First-ciel
|
Feb. 5, 2015, 4:32 p.m. |
+ 1 |
for Comment
Sim0000: Global variable count has given a bad effect. See [Most Frequently Errors](http://www.checkio.org/wi...
|
Feb. 5, 2015, 10:29 a.m. |
+ 1 |
for Comment
OMFGNuts: Hi! I totally agree with you, i'll talk to our devs regarding this issue. Thanx
|
Feb. 4, 2015, 9:02 a.m. |
+ 1 |
for Comment
Sim0000: [gyahun_dash](http://www.checkio.org/user/gyahun_dash/) have discussed about the issue. See previous...
|
Feb. 4, 2015, 9:02 a.m. |
+ 1 |
for Comment
gyahun_dash: Thank you for your examination! According to the formula bryukh has said, coefficient can be about 0...
|
Feb. 4, 2015, 9:02 a.m. |
+ 1 |
for Comment
Sim0000: I try to examine. * vote: score (detail) * +0: +8 (only publish) * +1: +23 (8 + 15) * +2: +35 (8 + 1...
|
Feb. 4, 2015, 9:01 a.m. |
+ 1 |
for Comment
bryukh: You found it! You are first, gratz! :-) Honestly we are using reducing coefficient and for the first...
|
Feb. 3, 2015, 7:12 p.m. |
+ 1 |
for
First-EthyBOX
|
Jan. 31, 2015, 2:05 p.m. |
+ 1 |
for Comment
Cjkjvfnby: It is shame for professional programmer to ask such questions. If you can solve this task in your la...
|
Jan. 29, 2015, 5:37 a.m. |
+ 1 |
for Comment
veky: 1. Or better, import string and use ascii_lowercase from there. 2. strictly, it's equivalent to `ret...
|
Jan. 27, 2015, 3:08 p.m. |
+ 1 |
for Comment
OMFGNuts: Thanx. I'm working on adding gigantic FAQ on forum soon, so this kind of questions will resolve with...
|
Jan. 27, 2015, 3:05 p.m. |
+ 1 |
for Comment
DiZ: for golfing, here is your solution in 65 characters ;) check_pangram=lambda t:len(set(filter(str.isl...
|
Jan. 27, 2015, 2:45 p.m. |
+ 1 |
for
65-DiZ
|
Jan. 27, 2015, 2:08 p.m. |
+ 1 |
for Comment
OMFGNuts: string = "" for command in commands: splited = command.split() if len(splited) > 1: string += splite...
|
Jan. 27, 2015, 12:29 a.m. |
+ 1 |
for Comment
hellerve_f2e46923d3ff406194333: A bit to code-golfy for my taste, but a nice approach.
|
Jan. 26, 2015, 11:58 p.m. |
+ 2 |
for
First-spoty
|
Jan. 26, 2015, 5:16 p.m. |
+ 1 |
for Comment
bryukh: Hm, it's little late and I want to place it for the "Elementary". But we can think up something like...
|
Jan. 26, 2015, 1:26 p.m. |
+ 1 |
for Comment
spoty: Thank's to Michael Hudson we have from python 1.4 - Extended Slices. You can do: >>> l = range(10) >...
|
Jan. 26, 2015, 12:21 a.m. |
+ 1 |
for Comment
flex: Exactly!Thanks) Can i use maketrans({"?":' ','!':' ',',':' '....}) or it can be solved smth better?
|
Jan. 22, 2015, 10:14 a.m. |
+ 1 |
for Comment
Sim0000: You don't need iter.
|
Jan. 22, 2015, 9:39 a.m. |
+ 1 |
for
First-gmixo
|
Jan. 21, 2015, 10:54 p.m. |
+ 2 |
for
extend/isinstance-Tarty
|
Jan. 20, 2015, 6:05 p.m. |
+ 1 |
for Post
Functional programming
|
Jan. 18, 2015, 11:30 p.m. |
+ 2 |
for
Cycle detection-DiZ
|
Jan. 18, 2015, 7:55 p.m. |
+ 1 |
for Comment
bryukh: Almost all tasks can be solved various paths and algorithms. We would not restrict users. Of course ...
|
Jan. 17, 2015, 4:19 p.m. |
+ 1 |
for
Painstaking-veky
|
Jan. 17, 2015, 4:10 p.m. |
+ 1 |
for
Try: understand-veky
|