April 1, 2024, 5:16 a.m. |
+1 |
Experience for voted comment veky: 1 on StefanPochmann: I don't mean a table. In your case it's another formula, making it even more formulaic :-D ```python... |
April 1, 2024, 5:16 a.m. |
+5 |
Experience for appreciated comment veky: 1 on StefanPochmann: I don't mean a table. In your case it's another formula, making it even more formulaic :-D ```python... |
April 1, 2024, 4:22 a.m. |
+2 |
Experience for voted comment tokiojapan55: 1 on StefanPochmann: Could've been clearer without the shift. Put "zero" at index zero, "positive" at index +1, and "nega... |
April 1, 2024, 4:22 a.m. |
+5 |
Experience for appreciated comment tokiojapan55: 1 on StefanPochmann: Could've been clearer without the shift. Put "zero" at index zero, "positive" at index +1, and "nega... |
April 1, 2024, 3:36 a.m. |
+3 |
Experience for solved mission Integer Sign Determination |
March 30, 2024, 10:47 p.m. |
+3 |
Experience for voted solution solnischka78: 3 on text.find or None-StefanPochmann |
March 30, 2024, 8:13 p.m. |
+15 |
Experience for solved mission Changing direction |
March 30, 2024, 7:47 p.m. |
+5 |
Experience for solved mission Replace First |
March 30, 2024, 7:46 p.m. |
+5 |
Experience for solved mission Count Digits |
March 30, 2024, 7:44 p.m. |
+15 |
Experience for solved mission All the Same |
March 30, 2024, 7:43 p.m. |
+5 |
Experience for solved mission Sum Numbers |
March 30, 2024, 7:42 p.m. |
+5 |
Experience for solved mission Number Length |
March 30, 2024, 7:41 p.m. |
+5 |
Experience for solved mission Acceptable Password I |
March 30, 2024, 7:41 p.m. |
+8 |
Experience for solved mission Beginning Zeros |
March 30, 2024, 7:38 p.m. |
+8 |
Experience for solved mission Nearest Value |
March 30, 2024, 1:40 p.m. |
+1 |
Experience for voted comment viktor.chyrkin: 1 on StefanPochmann: Sloppy! Not just any. Otherwise `return ''` would suffice. |
March 30, 2024, 1:40 p.m. |
+1 |
Experience for voted comment viktor.chyrkin: 1 on StefanPochmann: So did you get it from one of the solutions there? I hadn't solved that mission yet, so I couldn't h... |
March 30, 2024, 1:40 p.m. |
+1 |
Experience for voted comment viktor.chyrkin: 1 on StefanPochmann: Just curious: Where is that code from? I think I've seen it before. |
March 30, 2024, 10:45 a.m. |
+8 |
Experience for solved mission Split Pairs |
March 30, 2024, 10:38 a.m. |
+5 |
Experience for solved mission Between Markers (simplified) |
March 30, 2024, 10:26 a.m. |
+15 |
Experience for solved mission Split List |
March 30, 2024, 7:55 a.m. |
+1 |
Experience for voted comment veky: 1 on StefanPochmann: The CRT is only about the existence of a unique remainder, isn't it? I didn't mean you used some alg... |
March 30, 2024, 7:55 a.m. |
+5 |
Experience for appreciated comment veky: 1 on StefanPochmann: The CRT is only about the existence of a unique remainder, isn't it? I didn't mean you used some alg... |
March 30, 2024, 3:50 a.m. |
+5 |
Experience for appreciated comment eraserhead88: 1 on StefanPochmann: This seems quite buggy. Some test cases (with input, what I'd expect, and what you return): ``` 'ud'... |
March 30, 2024, 3:50 a.m. |
+2 |
Experience for voted comment eraserhead88: 1 on StefanPochmann: This seems quite buggy. Some test cases (with input, what I'd expect, and what you return): ``` 'ud'... |
March 29, 2024, 7:29 p.m. |
+9 |
Experience for voted solution veky: 4 on EAFP: Easier to Ask For Pattern-StefanPochmann |
March 29, 2024, 7:29 p.m. |
+1 |
Experience for voted comment veky: 1 on StefanPochmann: I wasn't in the mood to do checks **during** the pattern-to-number conversion, so instead I just did... |
March 29, 2024, 11:09 a.m. |
+5 |
Experience for appreciated comment kurosawa4434: 1 on StefanPochmann: Yes, they depend on the order. In each of my two tests, the circles were always the same, only their... |
March 29, 2024, 11:09 a.m. |
+1 |
Experience for voted comment kurosawa4434: 1 on StefanPochmann: Yes, they depend on the order. In each of my two tests, the circles were always the same, only their... |
March 29, 2024, 8:51 a.m. |
+1 |
Experience for voted comment freeman_lex: 1 on StefanPochmann: Solved it, thanks. And now I actually like it and upvoted :-) |
March 29, 2024, 7:28 a.m. |
+1 |
Experience for voted comment freeman_lex: 1 on StefanPochmann: Nice, downvoting missions works :-). Looks better now, I'll try it. The text says *"digits of every ... |
March 29, 2024, 12:45 a.m. |
+12 |
Experience for solved mission Cipher Dict (decryption) |
March 28, 2024, 11:35 p.m. |
+12 |
Experience for solved mission Cipher Dict |
March 28, 2024, 9:17 p.m. |
+9 |
Experience for solved mission Longest Common Prefix |
March 28, 2024, 6:28 p.m. |
+5 |
Experience for appreciated comment freeman_lex: 1 on StefanPochmann: Then that missed [this one](https://py.checkio.org/mission/the-centrifuge-problem/publications/Polun... |
March 28, 2024, 6:28 p.m. |
+1 |
Experience for voted comment freeman_lex: 1 on StefanPochmann: Then that missed [this one](https://py.checkio.org/mission/the-centrifuge-problem/publications/Polun... |
March 28, 2024, 12:57 p.m. |
+1 |
Experience for voted comment Phil15: 1 on StefanPochmann: I also tried those four solutions (and mine, but not all the others again) with 100 random permutati... |
March 28, 2024, 12:57 p.m. |
+1 |
Experience for voted comment Phil15: 1 on StefanPochmann: At least 4 of the 17 Creative solutions are wrong. I tested with all permutations of a single chain ... |
March 28, 2024, 7:47 a.m. |
+5 |
Experience for appreciated comment freeman_lex: 1 on StefanPochmann: Did that find any incorrect programs? And what happens when it does, do they get deleted or what hap... |
March 28, 2024, 7:47 a.m. |
+1 |
Experience for voted comment freeman_lex: 1 on StefanPochmann: Did that find any incorrect programs? And what happens when it does, do they get deleted or what hap... |
March 28, 2024, 2:21 a.m. |
+1 |
Experience for voted comment tamagoyaki: 1 on StefanPochmann: A little benchmark with an extreme case: ```python from timeit import timeit iterable = range(10**5)... |
March 28, 2024, 2:21 a.m. |
+5 |
Experience for appreciated comment tamagoyaki: 1 on StefanPochmann: A little benchmark with an extreme case: ```python from timeit import timeit iterable = range(10**5)... |
March 28, 2024, 12:08 a.m. |
+5 |
Experience for appreciated comment tamagoyaki: 1 on StefanPochmann: Yeah, I tried to understand it but couldn't make sense of it, as I didn't see any sums. |
March 28, 2024, 12:08 a.m. |
+1 |
Experience for voted comment tamagoyaki: 1 on StefanPochmann: Yeah, I tried to understand it but couldn't make sense of it, as I didn't see any sums. |
March 27, 2024, 11:12 p.m. |
+9 |
Experience for solved mission Frogs Collision |
March 27, 2024, 10:28 p.m. |
+5 |
Experience for appreciated comment juestr: 1 on StefanPochmann: Yeah yeah, I agree it's not significant and didn't expect you to repost. |
March 27, 2024, 10:28 p.m. |
+1 |
Experience for voted comment juestr: 1 on StefanPochmann: Yeah yeah, I agree it's not significant and didn't expect you to repost. |
March 27, 2024, 10:10 p.m. |
+1 |
Experience for voted comment veky: 1 on StefanPochmann: Hmm, ok, yes, it's a valid optimization, reusing the same list every time instead of creating and di... |
March 27, 2024, 10:10 p.m. |
+5 |
Experience for appreciated comment veky: 1 on StefanPochmann: Hmm, ok, yes, it's a valid optimization, reusing the same list every time instead of creating and di... |
March 27, 2024, 7:51 p.m. |
+1 |
Experience for voted comment freeman_lex: 1 on StefanPochmann: Better testing would be good. I tested all ~16 posted solutions and more than half of them were wron... |
March 27, 2024, 7:51 p.m. |
+5 |
Experience for appreciated comment freeman_lex: 1 on StefanPochmann: Better testing would be good. I tested all ~16 posted solutions and more than half of them were wron... |
March 27, 2024, 3:13 a.m. |
+15 |
Experience for solved mission Count Chains |
March 27, 2024, 3 a.m. |
+1 |
Experience for voted comment veky: 1 on StefanPochmann: No, I've always been bad with sleeping. And I'm pretty sure I never got COVID. |
March 27, 2024, 3 a.m. |
+5 |
Experience for appreciated comment veky: 1 on 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 |
Experience for voted comment veky: 1 on StefanPochmann: I also like `n in (round(n**e**-1)**e for ...)`, but that of course has the huge disadvantage of not... |
March 27, 2024, 1:55 a.m. |
+5 |
Experience for appreciated comment veky: 1 on StefanPochmann: I also like `n in (round(n**e**-1)**e for ...)`, but that of course has the huge disadvantage of not... |
March 27, 2024, 12:37 a.m. |
+9 |
Experience for solved mission Collatz Ztalloc |
March 26, 2024, 5:46 a.m. |
+2 |
Experience for voted comment tamagoyaki: 1 on StefanPochmann: Doesn't work, for example returns `True` for `balanced_centrifuge(6, 1)` and returns `False` for `ba... |
March 26, 2024, 5:46 a.m. |
+5 |
Experience for appreciated comment tamagoyaki: 1 on StefanPochmann: Doesn't work, for example returns `True` for `balanced_centrifuge(6, 1)` and returns `False` for `ba... |
March 26, 2024, 1:44 a.m. |
+5 |
Experience for solved mission Max Digit |
March 26, 2024, 12:57 a.m. |
+5 |
Experience for solved mission Say Hi |
March 25, 2024, 9:39 p.m. |
+12 |
Experience for solved mission Checking Perfect Power |
March 25, 2024, 8:48 p.m. |
+10 |
Experience for voted solution przemyslaw.daniel: 3 on Trial of the centurifuge-StefanPochmann |
March 25, 2024, 5:44 p.m. |
+1 |
Experience for voted comment H0r4c3: 1 on StefanPochmann: But with `finditer` and `+=`, you’re using very little memory, much less memory than `join` would. M... |
March 25, 2024, 5:44 p.m. |
+5 |
Experience for appreciated comment H0r4c3: 1 on StefanPochmann: But with `finditer` and `+=`, you’re using very little memory, much less memory than `join` would. M... |
March 25, 2024, 11:23 a.m. |
+1 |
Experience for voted comment kdim: 1 on StefanPochmann: But with `finditer` and `+=`, you’re using very little memory, much less memory than `join` would. M... |
March 25, 2024, 8:23 a.m. |
+1 |
Experience for voted comment Kolia951: 1 on StefanPochmann: Heh :-). I actually do find it clear and don't think it has PEP 8 issues, but I acknowledge it's unu... |
March 25, 2024, 7:24 a.m. |
+1 |
Experience for voted comment freeman_lex: 1 on StefanPochmann: I agree, and I'm looking forward to the itertools solutions :-). In a few months, I guess :-( (I lov... |
March 25, 2024, 7:24 a.m. |
+5 |
Experience for appreciated comment freeman_lex: 1 on StefanPochmann: I agree, and I'm looking forward to the itertools solutions :-). In a few months, I guess :-( (I lov... |
March 25, 2024, 2:19 a.m. |
+5 |
Experience for appreciated comment tamagoyaki: 1 on StefanPochmann: Oh, `replace("/","//")` is good. Longer than my trick, but much better. And so obvious in hindsight ... |
March 25, 2024, 2:19 a.m. |
+1 |
Experience for voted comment tamagoyaki: 1 on StefanPochmann: Oh, `replace("/","//")` is good. Longer than my trick, but much better. And so obvious in hindsight ... |
March 25, 2024, 12:15 a.m. |
+1 |
Experience for voted comment tamagoyaki: 1 on StefanPochmann: That's pretty bad. Try `postfix_evaluate([2, 3, "/", 10, "*"])`. Causes an infinite loop and memory ... |
March 25, 2024, 12:15 a.m. |
+5 |
Experience for appreciated comment tamagoyaki: 1 on StefanPochmann: That's pretty bad. Try `postfix_evaluate([2, 3, "/", 10, "*"])`. Causes an infinite loop and memory ... |
March 24, 2024, 8:20 p.m. |
+1 |
Experience for voted comment przemyslaw.daniel: 1 on StefanPochmann: Lol :-). Yeah, the whole time I also thought you were already using `bit_length`. And your approach ... |
March 24, 2024, 8:20 p.m. |
+5 |
Experience for appreciated comment przemyslaw.daniel: 1 on StefanPochmann: Lol :-). Yeah, the whole time I also thought you were already using `bit_length`. And your approach ... |
March 24, 2024, 7:45 p.m. |
+5 |
Experience for solved mission End Zeros |
March 24, 2024, 7:42 p.m. |
+5 |
Experience for appreciated comment przemyslaw.daniel: 1 on StefanPochmann: Yeah, I'm not exactly excited about mine :-). But at least I'm confident that it works, and that see... |
March 24, 2024, 7:42 p.m. |
+1 |
Experience for voted comment przemyslaw.daniel: 1 on StefanPochmann: Yeah, I'm not exactly excited about mine :-). But at least I'm confident that it works, and that see... |
March 24, 2024, 7:16 p.m. |
+1 |
Experience for voted comment przemyslaw.daniel: 1 on StefanPochmann: Ah, [new in Python 3.10](https://docs.python.org/3/whatsnew/3.10.html): > **Assignment expressions c... |
March 24, 2024, 7:16 p.m. |
+5 |
Experience for appreciated comment przemyslaw.daniel: 1 on StefanPochmann: Ah, [new in Python 3.10](https://docs.python.org/3/whatsnew/3.10.html): > **Assignment expressions c... |
March 24, 2024, 5:58 p.m. |
+1 |
Experience for voted comment przemyslaw.daniel: 1 on StefanPochmann: Another 2-liner :-P ```python beat_previous=lambda D,p=-1,c=0:[[p:=c] [c:=0]for d in D if(c:=c*10+in... |
March 24, 2024, 5:58 p.m. |
+5 |
Experience for appreciated comment przemyslaw.daniel: 1 on StefanPochmann: Another 2-liner :-P ```python beat_previous=lambda D,p=-1,c=0:[[p:=c] [c:=0]for d in D if(c:=c*10+in... |
March 24, 2024, 3:25 a.m. |
+5 |
Experience for appreciated comment juestr: 1 on StefanPochmann: Or just delete the type annotations altogether :-). I'm actually doing that anyway, to get [more mea... |
March 24, 2024, 3:25 a.m. |
+1 |
Experience for voted comment juestr: 1 on StefanPochmann: Or just delete the type annotations altogether :-). I'm actually doing that anyway, to get [more mea... |
March 23, 2024, 4:29 a.m. |
+5 |
Experience for appreciated comment gleb10101010101: 1 on StefanPochmann: Uh... That's not a bunch of one-liners, that's one bunch-liner :-) |
March 23, 2024, 4:29 a.m. |
+1 |
Experience for voted comment gleb10101010101: 1 on StefanPochmann: Uh... That's not a bunch of one-liners, that's one bunch-liner :-) |
March 22, 2024, 7:42 a.m. |
+5 |
Experience for appreciated comment veky: 1 on StefanPochmann: Oh, I just realized you could in your solution likewise just `return item`. And I'll try to rewrite ... |
March 22, 2024, 7:42 a.m. |
+1 |
Experience for voted comment veky: 1 on 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 |
Experience for voted comment veky: 1 on StefanPochmann: Darn non-bracket characters! Does CheckiO have a version of the mission without those? LeetCode [doe... |
March 22, 2024, 5:57 a.m. |
+5 |
Experience for appreciated comment veky: 1 on StefanPochmann: Darn non-bracket characters! Does CheckiO have a version of the mission without those? LeetCode [doe... |
March 21, 2024, 4:18 p.m. |
+1 |
Experience for voted comment juestr: 1 on StefanPochmann: Yeah, I didn't think the structure change "itself" would affect the speed, I was solely thinking abo... |
March 21, 2024, 12:45 a.m. |
+12 |
Experience for solved mission The Centrifuge Problem |
March 19, 2024, 8:15 a.m. |
+8 |
Experience for solved mission Duplicate Zeros |
March 16, 2024, 6:54 p.m. |
+12 |
Experience for voted solution veky: 4 on Seriously?-StefanPochmann |
March 15, 2024, 10:24 p.m. |
+9 |
Experience for solved mission Postfix Evaluation |
March 15, 2024, 10:07 p.m. |
+12 |
Experience for solved mission Champernowne Word |
March 15, 2024, 9:46 p.m. |
+9 |
Experience for solved mission Revorse the vewels |
March 13, 2024, 2:24 a.m. |
+5 |
Experience for voted solution adamspj: 5 on simple-StefanPochmann |
March 6, 2024, 7:32 p.m. |
+1 |
Experience for voted comment freeman_lex: 1 on StefanPochmann: Yeah, sorry, I saw the precondition right after posting this. |
March 6, 2024, 7:32 p.m. |
+5 |
Experience for appreciated comment freeman_lex: 1 on StefanPochmann: Yeah, sorry, I saw the precondition right after posting this. |