March 24, 2018, 5:58 a.m. |
+ 1 |
for Comment
polobaston73: This is genius!
|
March 23, 2018, 2:38 a.m. |
+ 2 |
for
to_CamelCase = partial-flpo
|
March 23, 2018, 2:32 a.m. |
+ 1 |
for Comment
macfreek: I deny everything.
|
March 21, 2018, 1:28 p.m. |
+ 2 |
for
First-Sim0000
|
March 20, 2018, 11:57 a.m. |
+ 1 |
for Comment
Sim0000: Great review! I like this :-)
|
March 20, 2018, 8:30 a.m. |
+ 3 |
for
one liner-Sim0000
|
March 16, 2018, 12:09 p.m. |
+ 1 |
for Comment
hrvoje: Just learned that my solution is overcomplicated by a factor of five. :))
|
March 15, 2018, 5:48 p.m. |
+ 1 |
for Comment
macfreek: I missed that _completely empty_ is not equal to _wellfounded and wellsized_. The former is not form...
|
March 6, 2018, 11:19 a.m. |
+ 1 |
for Comment
Torben: This looks elegant. When I look at my solution it looks like Frankenstein, ugly, but it works. To my...
|
Feb. 24, 2018, 7:07 p.m. |
+ 1 |
for Comment
flpo: This is a confirmation of what @veky said [above](https://py.checkio.org/forum/post/11993/new-missio...
|
Feb. 22, 2018, 4:06 a.m. |
+ 4 |
for
comprehension-kurosawa4434
|
Feb. 16, 2018, 5:05 p.m. |
+ 1 |
for
#Ididit-KevinFox24_2b8503cc45ae4c8485c
|
Feb. 14, 2018, 6:51 a.m. |
+ 1 |
for Comment
oduvan: I'm sorry. :) I just leave creativity for other CheckiO Players :)
|
Feb. 11, 2018, 4:08 a.m. |
+ 1 |
for Comment
bryukh: > Also, see "Always use a def statement instead of an assignment statement that binds a lambda expre...
|
Feb. 2, 2018, 10:51 a.m. |
+ 1 |
for Comment
Tinus_Trotyl: Or are we talking what usually is called items python jargon ?
|
Feb. 1, 2018, 4:44 p.m. |
+ 1 |
for Comment
oduvan: > if you want something changed on CiO Exactly! I think I should put this statement into Welcome ema...
|
Feb. 1, 2018, 4:43 p.m. |
+ 1 |
for Comment
Tinus_Trotyl: As I said ," `not any` `!=` at `all`" ;-)
|
Jan. 25, 2018, 7:14 a.m. |
+ 1 |
for Comment
HandsomeKevin: Brief and amazing solution
|
Jan. 21, 2018, 5:41 p.m. |
+ 1 |
for Comment
vlad.bezden: Awesome!!!
|
Jan. 9, 2018, 11:34 a.m. |
+ 1 |
for Comment
nickie: You're right, of course. As I said, my solution considers `[5, True]` not to be a list of integers. ...
|
Jan. 6, 2018, 6:52 a.m. |
+ 1 |
for Comment
Urza: Thank you very much, though a bit late... But the newbie I'm still is back for good! ^^
|
Jan. 5, 2018, 1:57 p.m. |
+ 1 |
for Comment
Strawberry: Awesome!!! Thanks for bring us such elegant codes!
|
Dec. 30, 2017, 2:10 p.m. |
+ 1 |
for Comment
DahliaSR: Damn... I added a boundary to my regex-pattern for no reason.
|
Dec. 29, 2017, 4:30 a.m. |
+ 1 |
for Comment
Gavinya: so amazing,learning!
|
Dec. 21, 2017, 10:19 p.m. |
+ 1 |
for Comment
przemyslaw.daniel: Actually there is no proof of unidirectionality of time but there is a proof that this task can be d...
|
Dec. 17, 2017, 7:39 p.m. |
+ 1 |
for Comment
KissK: The use of * is really awesome!Thanks for a good solution.
|
Dec. 9, 2017, 8:19 a.m. |
+ 1 |
for
Recursion with Cache (thanks Veky)-Czarinov
|
Dec. 9, 2017, 8:18 a.m. |
+ 1 |
for Comment
Czarinov: Thank you very much, Veky. It really didn't occur to me. It fixed the issue of course. I will look i...
|
Dec. 3, 2017, 4:35 p.m. |
+ 1 |
for Comment
StefanPochmann: > segment in ('.','') No need for so much code, you can just use segment in '.'
|
Dec. 2, 2017, 7:04 a.m. |
+ 1 |
for Comment
tom-tom_f993b3abc4814d4cb5476e: Very clear, self-descriptive solution. What a pity it’s wrong: >>> correct_sentence('To Sherlock Hol...
|
Nov. 28, 2017, 11:37 a.m. |
+ 1 |
for Comment
R2R: Very elegant solution! Just 1 question. Why using if '.'.startswith(segment) instead of more readabl...
|
Nov. 28, 2017, 11:31 a.m. |
+ 1 |
for Comment
9Teen90Three: Extraordinary but I found it useful, thank you.
|
Nov. 23, 2017, 1:46 p.m. |
+ 1 |
for Comment
gyahun_dash: ### Appendix (but longer than code) ---- First, let jars be small and large: small, large = min(jars...
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
DiZ: Just a niptick :-p >"while 1" is really "while True" (I know it's longer, but I find it nicer and >m...
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
SandeepManilal: Oh right. 'or' can be used, and the use of the bool value as int is cool too! nice. you are a rockst...
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
Cjkjvfnby: European Association of Fish Pathologists likes you solution :)
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
Sim0000: You don't need iter.
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
Talim42: it's like magic
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
Pytato: Brilliant!
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
nickie: It's not a matter of modification, after all the result of reduce (list or tuple) is never modified,...
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
hanpari: Golfing? You mean greens, lawns and a lot of walking? Or it is something else?
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
macfreek: Whoa... just whoa.
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
dfridman: I'm just learning and I usually come to the solutions to see how more experienced people do it. I of...
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
Lasica: I feel like it ceases to be clear because of all the green comments...
|
Nov. 23, 2017, 1:45 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...
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
coells: Of course! When I was developing the test I had to deal with ~30 pseudoprimes. While I factorized th...
|
Nov. 23, 2017, 1:44 p.m. |
+ 1 |
for Comment
coells: I'm not sure if the cycle could be replaced? It is iterative form of recursion: given line AB find l...
|
Nov. 23, 2017, 1:44 p.m. |
+ 1 |
for Comment
Sim0000: I consider that it is better to restrict an input to an integer.
|
Nov. 23, 2017, 1:44 p.m. |
+ 1 |
for Comment
Cjkjvfnby: PERSPECTIVE`S WAY, WAY OFF. http://stephanpastis.files.wordpress.com/2009/03/hookah.gif?w=675&h=315
|
Nov. 23, 2017, 1:44 p.m. |
+ 1 |
for Comment
htamas: You're right, it's enough to call eval(e) if x and y are already in locals().
|
Nov. 23, 2017, 1:44 p.m. |
+ 1 |
for Comment
htamas: Because if you used it, it _would be_ too magic. Or at least [more magic](http://catb.org/jargon/htm...
|
Nov. 23, 2017, 1:44 p.m. |
+ 1 |
for Comment
htamas: Yes, I could have written for i in range(len(ranges)): if painted(ranges[:i+1]) >= num: return i+1 i...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
dirk86: I always expect your solutions to be in the "puzzle" category ;)
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
Anomander: You are right about the while check leading to duplication. I realized that right before going to be...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
Cjkjvfnby: Thanks for answer. You rest here from being an enterprise programmer :)
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
Anomander: For me, speed is the last concern when writing code. Usually. There are exceptions in which starting...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
Anomander: :) Well, you caught me. I'm a Java developer. But don't worry, I got rid of them in my recent soluti...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
bryukh: The nice trick! lambda x:"+"*x+"-"*-x I like it -- something new and not obvious.
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
Anomander: A short, efficient and extremely unreadable solution. As long as this does not go into production, I...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
spookyboo: Would this be the exact same thing? checkio = lambda data: ((0 * data) == 0) and [data] or sum(map(c...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
rolle_bolle: It sure is clearer. Thanks for taking the time to respond. I studied your answer quite a bit last ni...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
lesenv: for x,y in d: a,u,v=a+x*v-y*u,x,y clever, clever! i had to look twice to get it. nice :)
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
bryukh: I've written this phrase in my notebook ;-)
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
Lingson: There goes my 4 likes: "Why should _we_ care?" You have a strong point LOL.. Totally agreed. So let'...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
abesto: Are you sure this is O(n)? d.count(x) counts the number of times x occurs in d for each element of d...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
Apua: in Python2.7, it`s possible as below checkio=f=lambda d:d<[]and[d]or sum(map(f,d),[])
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
rhcoder: can u explain the code please?????
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
Cjkjvfnby: You short as always.
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
yan123_703b617968a74969bca2fba: This seemes a little shorter (modified "one line of Apua for Find IP" solution): checkio=lambda t:[d...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
CyroAvernus: Really the shortest and nice usage of the map function.....
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
oduvan: unreadable
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
bryukh: "Floodfill" is very accurate chosen name.
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
lesenv: on the point! very cool :)
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
htamas: Yes, I did write in on my mobile phone. Yes, it does have Python installed. No, I didn't use it for ...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
nickie: I agree with everything you write, only I don't think that any of it can be used as an argument that...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
Juge_Ti: Actually it didn't take so much time : lines 76-410 and 962-972 come from Python's doc, lines 412-60...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
nickie: OK, this means that hashing when using dicts in Python (more precisely, all the defaultdict machiner...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
Juge_Ti: Ok, so it is a matter of aesthetics. I am not experienced enough as a programmer to have a very deve...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
bryukh: But if change c.lower at text.lower the -20% but it still slower.
|
Nov. 23, 2017, 1:40 p.m. |
+ 1 |
for Comment
nickie: You're right. Here's a one-liner in Python that works, more or less, in the same way as my Haskell o...
|
Nov. 23, 2017, 1:40 p.m. |
+ 1 |
for Comment
bryukh: I think, this is "snowball" effect :-) I like your solutions for new tricks and like PositronicLama ...
|
Nov. 23, 2017, 1:40 p.m. |
+ 1 |
for Comment
oduvan: "Harder, Better, Faster, Stronger" - Daft Punk "Harder, smaller, shorter" - Veky :)
|
Nov. 23, 2017, 1:40 p.m. |
+ 1 |
for Comment
bryukh: Yep, this is UCS.
|
Nov. 23, 2017, 1:40 p.m. |
+ 1 |
for Comment
oduvan: Because we are actually working on new profile page :)
|
Nov. 23, 2017, 1:40 p.m. |
+ 1 |
for Comment
DiZ: Python 3 annotations, very nice! Just to mention it to future readers ;-) : Switch lines 11 and 12 a...
|
Nov. 23, 2017, 1:40 p.m. |
+ 1 |
for Comment
bryukh: This is micro-optimisation and even for hundreds years it will economize for us dozens kilobytes.
|
Nov. 23, 2017, 1:40 p.m. |
+ 1 |
for Comment
qria: I tweaked it a bit so that it covers every case(that I can think of), and yeah, it takes at least a ...
|
Nov. 23, 2017, 1:40 p.m. |
+ 1 |
for Comment
nickie: Nice slicing...
|
Nov. 23, 2017, 1:39 p.m. |
+ 1 |
for Comment
nickie: I trust nothing about Python will puzzle you anymore, my friend... :-)
|
Nov. 23, 2017, 1:39 p.m. |
+ 1 |
for Comment
qria: \>>> r = ['012','345','678'] \>>> ["".join(r)[::e]for e in (4, -4)]+r+list(map("".join,zip(*r))) ['0...
|
Nov. 23, 2017, 1:39 p.m. |
+ 1 |
for Comment
gflegar: It seemed so repetitive... :)
|
Nov. 23, 2017, 1:39 p.m. |
+ 1 |
for Comment
PositronicLlama: This one is for veky!
|
Nov. 23, 2017, 1:39 p.m. |
+ 1 |
for Comment
PavloTaiko: e=lambda n,t,s:[n+c for l in t if n==l[0]for c in e(l[1],t-{l,l[::-1]},s-{n})]if s or n>'1'else[n] i...
|
Nov. 23, 2017, 1:39 p.m. |
+ 1 |
for Comment
PositronicLlama: Short and clever solution! But brevity is not the only goal - I would suggest trying to write the sh...
|
Nov. 23, 2017, 1:39 p.m. |
+ 1 |
for Comment
Vachenzo: You do have a tendency for crazy/awesome solutions.
|
Nov. 23, 2017, 1:38 p.m. |
+ 1 |
for Comment
suwanditan: It is so compact, and so veky-ish :) Congrats !
|
Nov. 23, 2017, 1:38 p.m. |
+ 1 |
for Comment
naexio: for ore at (8, 4), it puts (7, 3), (6, 4), (8, 3), (7, 2) and (8, 4) for ore at (7, 0), it puts (7, ...
|
Nov. 23, 2017, 1:38 p.m. |
+ 1 |
for Comment
pyos_c5874a6bf94549e5b7bf2a696: >I wonder who's gonna be the first to figure out for which ore coordinates all our solutions fail Qu...
|
Nov. 23, 2017, 1:38 p.m. |
+ 1 |
for Comment
AndriusMk: import sacred import eternal eternal.grant(sum(sacred.perform(spell) for spell in sacred.ritual[''],...
|
Nov. 23, 2017, 1:38 p.m. |
+ 1 |
for Comment
AndriusMk: Mind blowing...
|