April 11, 2024, 3:15 p.m. |
+ 1 |
for Comment
StefanPochmann: The only one that works as initial value, making both `c < b` and `c > b` false for the first elemen...
|
April 11, 2024, 10 a.m. |
+ 4 |
for
The BEST number-StefanPochmann
|
April 7, 2024, 3:58 a.m. |
+ 1 |
for Comment
sedm0784: Hah. I thought, "I bet this is in the standard library," spent 5 mins looking for it in the docs and...
|
April 5, 2024, 3:37 p.m. |
+ 1 |
for Comment
StefanPochmann: Oh, that's what the difficulty on profile pages means. I was wondering about that. I don't have a go...
|
April 5, 2024, 7:32 a.m. |
+ 1 |
for Comment
freeman_lex: There are three difficulties at CheckiO: _Easy_, _Normal_ and _Advanced_ (no relations to the Awesom...
|
April 5, 2024, 1:48 a.m. |
+ 1 |
for Comment
StefanPochmann: I *would* say my pairwise∘groupby was creative, but also straightforward in hindsight. Yeah I got th...
|
April 4, 2024, 1:47 p.m. |
+ 1 |
for Comment
StefanPochmann: Comes with being leader of the month, though I still had to ask for it.
|
April 1, 2024, 5:16 a.m. |
+ 1 |
for Comment
StefanPochmann: I don't mean a table. In your case it's another formula, making it even more formulaic :-D ```python...
|
March 30, 2024, 7:55 a.m. |
+ 1 |
for Comment
StefanPochmann: The CRT is only about the existence of a unique remainder, isn't it? I didn't mean you used some alg...
|
March 29, 2024, 7:29 p.m. |
+ 4 |
for
EAFP: Easier to Ask For Pattern-StefanPochmann
|
March 29, 2024, 7:29 p.m. |
+ 1 |
for Comment
StefanPochmann: I wasn't in the mood to do checks **during** the pattern-to-number conversion, so instead I just did...
|
March 29, 2024, 8:15 a.m. |
+ 1 |
for Comment
freeman_lex: Yes, that's better, fixed.
|
March 27, 2024, 10:10 p.m. |
+ 1 |
for Comment
StefanPochmann: Hmm, ok, yes, it's a valid optimization, reusing the same list every time instead of creating and di...
|
March 27, 2024, 6:48 p.m. |
+ 1 |
for Comment
Ulukai85: But don't you see? Mine is the BEST solution, as i wrote, so you must be wrong... Seriously, I have ...
|
March 27, 2024, 6:48 p.m. |
+ 3 |
for
The BEST solution (I could come up with)-Ulukai85
|
March 27, 2024, 3 a.m. |
+ 1 |
for Comment
StefanPochmann: No, I've always been bad with sleeping. And I'm pretty sure I never got COVID.
|
March 27, 2024, 1:55 a.m. |
+ 1 |
for Comment
StefanPochmann: I also like `n in (round(n**e**-1)**e for ...)`, but that of course has the huge disadvantage of not...
|
March 22, 2024, 7:42 a.m. |
+ 1 |
for Comment
StefanPochmann: Oh, I just realized you could in your solution likewise just `return item`. And I'll try to rewrite ...
|
March 22, 2024, 5:57 a.m. |
+ 1 |
for Comment
StefanPochmann: Darn non-bracket characters! Does CheckiO have a version of the mission without those? LeetCode [doe...
|
March 16, 2024, 6:54 p.m. |
+ 4 |
for
Seriously?-StefanPochmann
|
Feb. 27, 2024, 4:35 p.m. |
+ 1 |
for Comment
a8696tk: beautiful, what else can I add?)
|
Feb. 27, 2024, 3:12 p.m. |
+ 1 |
for Comment
Phil15: Well I think people have to learn that `.split()` is not the same as [spoiler] `.split(' ')` [/spoil...
|
Feb. 27, 2024, 3:11 p.m. |
+ 1 |
for Comment
kurosawa4434: I see. I would make the following modifications. The description add: "The adjacent tuples in the re...
|
Feb. 19, 2024, 10:26 a.m. |
+ 1 |
for Comment
H0r4c3: Interesting solution! An excellent idea to use the Enum class! And the funny explanations... :)
|
Feb. 19, 2024, 7:08 a.m. |
+ 1 |
for Comment
StefanPochmann: Next time, ask it to reply in markdown.
|
Jan. 9, 2024, 6:04 p.m. |
+ 1 |
for Comment
edigeorges50: Cool, honestly!
|
Dec. 22, 2023, 3:17 p.m. |
+ 4 |
for
8-liner: almost easy regex-przemyslaw.daniel
|
Dec. 22, 2023, 3:12 p.m. |
+ 5 |
for
eval(pythonize(formula))-flpo
|
Dec. 22, 2023, 4:16 a.m. |
+ 1 |
for Comment
paradox81ru: an excellent solution
|
Dec. 17, 2023, 11:56 p.m. |
+ 1 |
for Comment
H0r4c3: Great solution using the function namedtuple() from the module collections! A new good lesson for ma...
|
Dec. 13, 2023, 9:32 a.m. |
+ 1 |
for Comment
marcopunteri: of course it's subjective, "imho" means that :) The main point i don't like is the lack of feedback ...
|
Dec. 12, 2023, 5:03 p.m. |
+ 1 |
for Comment
marcopunteri: i like the idea of a mission chain with a step-by-step logic, but imho these are the worst missions ...
|
Dec. 3, 2023, 2:01 a.m. |
+ 1 |
for Comment
KenjiKugimiya: I didn't know you could write TRY on one line. The simple way of writing it was very helpful. Thank ...
|
Oct. 30, 2023, 11:09 a.m. |
+ 1 |
for Comment
H0r4c3: Great solution! As usual...
|
Oct. 22, 2023, 4:31 a.m. |
+ 1 |
for Comment
Magu: i think it's a really elegant solution. very intelligent and simple. :D
|
Oct. 16, 2023, 5:20 p.m. |
+ 1 |
for Comment
asapfrogy: gret simple solution
|
Oct. 16, 2023, 5:20 p.m. |
+ 1 |
for Comment
asapfrogy: Simple function, works as expected.
|
Oct. 15, 2023, 4:46 p.m. |
+ 1 |
for Comment
mennadiego: yield keyword like a boss here, very small code. Like it!
|
Oct. 15, 2023, 3:42 p.m. |
+ 1 |
for Comment
Magu: Wow. It's elegant. An impressive solution. :D
|
Oct. 14, 2023, 2:05 a.m. |
+ 1 |
for Comment
Pactp: Nice onliner. Clear and smart.
|
Oct. 12, 2023, 5:16 a.m. |
+ 1 |
for Comment
yufengyuyun: I know a new method from your solution. Nice!
|
Oct. 5, 2023, 9:11 a.m. |
+ 1 |
for Comment
Pavellver: I like the use of yield and overall how short the code is.
|
Sept. 26, 2023, 9:56 a.m. |
+ 1 |
for Comment
Sim0000: Great!
|
Sept. 21, 2023, 8:05 p.m. |
+ 1 |
for Comment
PistoleroAlan: Very instructive, i like it.
|
Sept. 21, 2023, 12:44 a.m. |
+ 1 |
for Comment
H0r4c3: A clear solution! Great comments and explanations!
|
Sept. 15, 2023, 2:17 a.m. |
+ 1 |
for Comment
Tinus_Trotyl: I did noticed already as your python lisps forth like a code constrictor . . . logical strangulation...
|
Sept. 13, 2023, 5:46 p.m. |
+ 1 |
for Comment
zezyaka: Good Job, Mate!
|
Aug. 21, 2023, 8:50 a.m. |
+ 1 |
for Comment
aniseo: I'm struggling to undestand why we can use isalpha() here (in the whole task, not really only in thi...
|
Aug. 19, 2023, 1:34 p.m. |
+ 1 |
for Comment
Dhliu8002: Such a cool way to solve this
|
July 30, 2023, 11:42 p.m. |
+ 4 |
for
3-liner: compact-przemyslaw.daniel
|
July 3, 2023, 8:14 a.m. |
+ 1 |
for Comment
Nazareth: Great realisation!
|
June 21, 2023, 3:30 a.m. |
+ 1 |
for Comment
StefanPochmann: Inspired me to do it **with** it, here's one version: ``` def compress(items): from itertools import...
|
June 21, 2023, 3:29 a.m. |
+ 1 |
for Comment
StefanPochmann: Oh I just realized I don't need `tee`, as the input is definitely a list. I guess it's my habit of t...
|
June 14, 2023, 7:41 p.m. |
+ 1 |
for Comment
flowerinapot: Very interesting solution, learned a lot for myself. Thank you very much for explaining everything i...
|
June 13, 2023, 12:46 p.m. |
+ 1 |
for Comment
space_geol: Never knew you could use key that way!
|
June 9, 2023, 5:12 a.m. |
+ 2 |
for
I learnd map(func, iterable, iterable) from veky's solution-ainem
|
June 1, 2023, 2:31 a.m. |
+ 1 |
for Comment
suic: My 2 cents: This whole series is just meh! These are not missions but a (not very OOP good) tutorial...
|
May 25, 2023, 8:57 a.m. |
+ 1 |
for Comment
viktor.chyrkin: I guess so.^_^
|
May 20, 2023, 5:12 p.m. |
+ 3 |
for
next can take more than one argument-Rcp8jzd
|
May 20, 2023, 5:11 p.m. |
+ 1 |
for Comment
Rcp8jzd: Did you know that you could use the built-in `next` function with an optional second argument? Note ...
|
May 20, 2023, 5:11 p.m. |
+ 4 |
for
write on screen-kurosawa4434
|
May 13, 2023, 12:30 a.m. |
+ 1 |
for Comment
bryukh: Ha. Nice! I just saw it. The interesting idea to break all links (instead rings) and look for the be...
|
May 13, 2023, 12:28 a.m. |
+ 1 |
for Comment
TheRing: Quite similar here. I tried to find a strategy instead of brute force testing. Thank you, from your ...
|
May 13, 2023, 12:27 a.m. |
+ 1 |
for Comment
StevenDorsey: I'm blown away by the simplicity of your solution to this problem. I felt so proud of my multi-step ...
|
May 12, 2023, 2:02 a.m. |
+ 1 |
for Comment
TheRing: Interesting what one can do with decorators.
|
May 9, 2023, 8:45 p.m. |
+ 1 |
for Comment
StefanPochmann: Hmm, now what to do with this... I gave the original +5 for its neat insight/algorithm. I do like th...
|
May 9, 2023, 1:57 a.m. |
+ 1 |
for Comment
StefanPochmann: Combining your backwards idea with my "speedy" idea of using one lookup per move: ```python from fun...
|
May 7, 2023, 6:41 p.m. |
+ 1 |
for
First-ssk8
|
May 5, 2023, 9:31 p.m. |
+ 1 |
for Comment
Max0526: Got it, thank you! translate = lambda text: __import__('re').sub(r"(\w)(\1\1|.)", r"\1", text)
|
May 5, 2023, 2:33 p.m. |
+ 1 |
for Comment
juestr: Yes that would explain it. Sometimes I wish we could solve in Haskell for comparison directly.
|
May 2, 2023, 9:33 a.m. |
+ 1 |
for Comment
Germ: I didn't know about groupby, i have to say that really helps.
|
May 1, 2023, 4:15 p.m. |
+ 1 |
for Comment
dig: Thank you for your comment, and I appreciate your perspective on the issue. I completely agree with ...
|
May 1, 2023, 4:07 a.m. |
+ 1 |
for Comment
oduvan: Can it be some kind of cache?
|
April 30, 2023, 5:02 p.m. |
+ 1 |
for Comment
StefanPochmann: I did almost the same, just decided to go with `filter(None, sorted(L))` so I don't need to type `it...
|
April 30, 2023, 8:11 a.m. |
+ 1 |
for Comment
H0r4c3: Another lesson learned here: how to comment correctly. I had no idea about the code format. Glad to ...
|
April 30, 2023, 5:59 a.m. |
+ 1 |
for Comment
H0r4c3: Sorry, my bad! How about this format? :-P def pairwise(iterable): # pairwise('ABCDEFG') --> AB BC CD...
|
April 29, 2023, 7:55 a.m. |
+ 1 |
for Comment
StefanPochmann: If you add extra values, make sure to identify the pattern so you add the correct ones :-) Nah, yeah...
|
April 23, 2023, 10:41 p.m. |
+ 1 |
for Comment
s_m: Thx! Best regards!
|
March 30, 2023, 6:08 a.m. |
+ 1 |
for Comment
StefanPochmann: Ah, so nothing specific to your solution? That seems essential to any correct solution, so those nai...
|
March 28, 2023, 6:16 p.m. |
+ 1 |
for Comment
BrianMcleod: Very nice!! Great functions with clear names: * aligned - is the rook in line with the target? * ord...
|
March 25, 2023, 3:14 a.m. |
+ 1 |
for Comment
dig: Thank you :)
|
March 24, 2023, 7:09 p.m. |
+ 1 |
for Comment
dig: You mean it is like that: yield from ([x] if isinstance(x, int) else ) ? Parenthesis are for underst...
|
March 21, 2023, 2:16 p.m. |
+ 1 |
for Comment
dig: Very nice geometry lesson, thank you :)
|
March 20, 2023, 11:05 a.m. |
+ 1 |
for Comment
StefanPochmann: Ah. I meant "last" in contrast to "this". Like last week vs this week. In *this* (final) minute we f...
|
March 20, 2023, 11:03 a.m. |
+ 1 |
for Comment
StefanPochmann: Ugh, that `sub` behavior seems awful. I think it's more likely that CheckiO will have changed the ex...
|
March 18, 2023, 7:09 p.m. |
+ 1 |
for Comment
StefanPochmann: Ok but how does that not give you an error when `a` is empty? Surely `minmax` raises an error then, ...
|
March 17, 2023, 3:27 a.m. |
+ 1 |
for Comment
SIRvice: verry short nice
|
March 15, 2023, 6:59 p.m. |
+ 1 |
for Comment
U.V: It seems, time complexity of algo is O(n*log(n)) ?
|
March 15, 2023, 7 a.m. |
+ 4 |
for
Simple simulation-StefanPochmann
|
March 15, 2023, 7 a.m. |
+ 1 |
for Comment
StefanPochmann: If I remember correctly, I got that complex number trick from @veky years ago.
|
March 14, 2023, 8:47 a.m. |
+ 1 |
for Comment
H0r4c3: Enum for the win! Nice and interesting solution!
|
March 13, 2023, 8:20 p.m. |
+ 1 |
for Comment
Phil15: Nice treasure from the deprecated stdlib. Only looking at docs, I could not find this gem. Curious, ...
|
March 9, 2023, 9:05 a.m. |
+ 1 |
for Comment
StefanPochmann: [It's here](http://www.checkio.org/mission/bird-language/publications/StefanPochmann/python-3/vek/)
|
March 3, 2023, 4:21 a.m. |
+ 1 |
for Comment
kamerilov: perfect, thank you
|
March 2, 2023, 3:13 a.m. |
+ 1 |
for Comment
TheRing: An interesting approach to compare adjacent elements in an iterable without using indices.
|
March 2, 2023, 3:11 a.m. |
+ 1 |
for Comment
tsmile2017: damn good, nice for sharing
|
Feb. 25, 2023, 10:57 p.m. |
+ 1 |
for Comment
viktor.chyrkin: thanks!
|
Feb. 25, 2023, 10:02 p.m. |
+ 1 |
for Comment
H0r4c3: Interesting solution, as usual! A lesson for learning the use of with and contextlib.
|
Feb. 25, 2023, 9:59 p.m. |
+ 1 |
for Comment
masero: Oh, so "and" takes precedence over "or", I didn't know it, thanks :-)
|
Feb. 25, 2023, 9:56 p.m. |
+ 1 |
for Comment
mu_py: > PS a few pluses wouldn’t harm right you are 👌
|