May 7, 2024, 1:31 p.m. |
+ 1 |
for Comment
veky: But you're not swapping them _inside_ a set or dictionary (which would be nonsensical, I agree). You...
|
May 7, 2024, 1:30 p.m. |
+ 1 |
for Comment
veky: Iterable doesn't have to support indexing. :-/
|
May 2, 2024, 10:28 a.m. |
+ 1 |
for Comment
nurzhan7511: Good use of zip_longest but imho "_guard" is overcoding. You can leave zip_longest(it, it) and fillv...
|
April 17, 2024, 8:45 p.m. |
+ 1 |
for
match case-Tinus_Trotyl
|
April 11, 2024, 5:30 p.m. |
+ 3 |
for
juestr's compressed-veky
|
April 11, 2024, 5:29 p.m. |
+ 1 |
for Comment
StefanPochmann: 8 chars less: ```python changing_direction=lambda e,p=lambda s:[a<b for a,b in zip(s,s[1:])if a-b]:l...
|
April 11, 2024, 5:28 p.m. |
+ 1 |
for Comment
veky: Thanks @juestr!
|
April 3, 2024, 4:28 p.m. |
+ 1 |
for Comment
StefanPochmann: I actually think this is better than returning the original `items`. Consistently returns a new list...
|
March 29, 2024, 10:55 a.m. |
+ 3 |
for
5-liner: easy and finally correct - thanks to Stefan-przemyslaw.daniel
|
March 27, 2024, 10:28 p.m. |
+ 1 |
for Comment
StefanPochmann: Yeah yeah, I agree it's not significant and didn't expect you to repost.
|
March 26, 2024, 9:30 p.m. |
+ 1 |
for Comment
zeixes: Maybe =) Thanks for idea, i think about it in other similar tasks, or when rewrite this.
|
March 26, 2024, 11:15 a.m. |
+ 1 |
for
Solution for "Revorse the vewels"-zeixes
|
March 24, 2024, 3:25 a.m. |
+ 1 |
for Comment
StefanPochmann: Or just delete the type annotations altogether :-). I'm actually doing that anyway, to get [more mea...
|
March 21, 2024, 4:18 p.m. |
+ 1 |
for Comment
StefanPochmann: Yeah, I didn't think the structure change "itself" would affect the speed, I was solely thinking abo...
|
March 15, 2024, 12:57 p.m. |
+ 1 |
for Comment
gleb10101010101: Very beautiful!
|
March 2, 2024, 10:25 p.m. |
+ 1 |
for Comment
kudinov.feodor: wow so wierd translatiion approach )
|
March 1, 2024, 8:51 p.m. |
+ 1 |
for Comment
amandel: I realized it, after failing a test with the other interpretation. It is the wrong choice, and compl...
|
March 1, 2024, 1:26 p.m. |
+ 1 |
for Comment
Nocturne13: , the more imports - the better)) I can't say that it's an easy solution to grasp, but the code is v...
|
Feb. 7, 2024, 2:44 p.m. |
+ 1 |
for Comment
tamagoyaki: nice function of rotation!
|
Jan. 14, 2024, 2:51 p.m. |
+ 1 |
for Comment
amandel: You are reading it wrong, maybe because of the reordering. start: ["abcc", "abca", "bcab", "", ""] f...
|
Jan. 5, 2024, 7:04 p.m. |
+ 1 |
for Comment
Phil15: Missions with multiple functions exist on CheckiO. Such as this [one](https://py.checkio.org/mission...
|
Nov. 16, 2023, 12:43 p.m. |
+ 1 |
for Comment
Kolia951: Is that fair to change function's arguments? =)
|
Nov. 16, 2023, 12:42 p.m. |
+ 1 |
for Comment
Pactp: Nice 3rd part facilities using. We needn't reinvent the wheel )
|
Nov. 6, 2023, 10:57 a.m. |
+ 1 |
for Comment
tamagoyaki: Very complicated but nice solution
|
Oct. 20, 2023, 2:49 p.m. |
+ 1 |
for Comment
U.V: Thanks for the link. I really liked the article
|
Oct. 19, 2023, 1:34 p.m. |
+ 1 |
for Comment
U.V: New item for me - itemgetter!
|
Oct. 19, 2023, 1:11 p.m. |
+ 1 |
for Comment
U.V: Interesting solution!
|
Oct. 18, 2023, 10:20 p.m. |
+ 1 |
for Comment
U.V: Interesting using of recursion and yield
|
Oct. 6, 2023, 8:23 p.m. |
+ 1 |
for Comment
mildm: interesting
|
Oct. 2, 2023, 12:26 p.m. |
+ 1 |
for Comment
Alexander_Avduevsky: Very transparent implemenation. _reviewed for quest points_
|
Aug. 12, 2023, 9:39 a.m. |
+ 1 |
for Comment
U.V: Yes. I see yours solution - it's interesting
|
Aug. 5, 2023, 2:45 p.m. |
+ 1 |
for Comment
Phil15: Nice enough mission. I started by looking at tests to see if there was any big row/col number preven...
|
Aug. 5, 2023, 2:39 p.m. |
+ 1 |
for Comment
H0r4c3: Great solution!
|
Aug. 4, 2023, 11:48 a.m. |
+ 4 |
for
Linear time-amandel
|
Aug. 1, 2023, 6:06 p.m. |
+ 1 |
for Comment
veky: tabu _really_ should be a set. Yes, I know about JS. JS is a different language. We are speaking Pyt...
|
July 28, 2023, 5 p.m. |
+ 1 |
for Task
Knapsack Problem
|
July 27, 2023, 2:16 p.m. |
+ 1 |
for Comment
U.V: Short and clear. I like this solution.
|
July 6, 2023, 5:36 p.m. |
+ 1 |
for
Use Math Constants to Tiling Dominos and Handling Exceptions while Coding in ChatGPT
|
June 19, 2023, 7:03 a.m. |
+ 1 |
for Comment
veky: As I said [above](https://py.checkio.org/forum/post/15744/series-about-oop/#comment-122104), that al...
|
June 9, 2023, 12:19 p.m. |
+ 1 |
for Comment
Nocturne13: Nice, clear and readable solution. Well done.
|
June 8, 2023, 12:54 p.m. |
+ 1 |
for Comment
Phil15: "instance attribute" are defined in `__init__` VS "class attribute" defined at "class level" (not in...
|
May 31, 2023, 9:37 p.m. |
+ 1 |
for Comment
veky: Yeah, I don't really like those missions because they seem fundamentally different from other missio...
|
May 31, 2023, 8:53 p.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 31, 2023, 7:02 p.m. |
+ 1 |
for Comment
H0r4c3: Great use of Rotation!
|
May 22, 2023, 9:16 p.m. |
+ 1 |
for Comment
H0r4c3: Great solution!
|
May 21, 2023, 10:06 p.m. |
+ 1 |
for Comment
StefanPochmann: I had actually done that, but then decided this is clearer. Maybe I shouldn't have.
|
May 21, 2023, 9:57 p.m. |
+ 1 |
for Comment
dig: Amazing, I love it!
|
May 21, 2023, 12:12 p.m. |
+ 1 |
for Comment
dig: Even it is a clear algorithm, is an O(2^n), but enough to solve with 10 stairs, also cache helps ;)
|
May 10, 2023, 10:26 p.m. |
+ 3 |
for
Pochmannia!-veky
|
May 10, 2023, 10:25 p.m. |
+ 5 |
for
11-liner: unrolling-przemyslaw.daniel
|
May 6, 2023, 10:19 p.m. |
+ 1 |
for Comment
H0r4c3: Nice use of tee function!
|
May 1, 2023, 10:47 p.m. |
+ 1 |
for Comment
H0r4c3: Short and clear solution!
|
May 1, 2023, noon |
+ 3 |
for
First-mortonfox
|
May 1, 2023, 11:58 a.m. |
+ 1 |
for Comment
H0r4c3: Great use of regex! Regex for the win!
|
May 1, 2023, 11:58 a.m. |
+ 1 |
for Comment
H0r4c3: Great solution, nice idea with the dictionary 'brackets'!
|
May 1, 2023, 11:58 a.m. |
+ 1 |
for Comment
H0r4c3: This solution is a real lesson in Python! Lambda, filter, map. And the best, subtraction of booleans...
|
May 1, 2023, 11:58 a.m. |
+ 1 |
for Comment
H0r4c3: Great solution! Recursion for the win!
|
April 29, 2023, 9:53 p.m. |
+ 1 |
for Comment
H0r4c3: Although the improved version is great, this one is nice, too.
|
April 29, 2023, 9:44 p.m. |
+ 1 |
for Comment
H0r4c3: Nice solution! I used re.findall('[\D]+[\d]+', password) for the second part, because I like regex.
|
April 29, 2023, 11:57 a.m. |
+ 1 |
for Comment
H0r4c3: Great solution! Thanks for the explanations!
|
April 29, 2023, 11:56 a.m. |
+ 1 |
for Comment
H0r4c3: Nice solution! Regex for the win!
|
April 28, 2023, 7:28 a.m. |
+ 1 |
for Comment
rybld2: Clear and clean
|
April 28, 2023, 6:38 a.m. |
+ 3 |
for
a tiny cup of pandas-rybld2
|
April 28, 2023, 4:28 a.m. |
+ 1 |
for Task
Rolling 🎲!
|
April 25, 2023, 5:03 p.m. |
+ 1 |
for Comment
Phil15: Indeed, nice to know, thanks!
|
April 25, 2023, 12:14 p.m. |
+ 1 |
for Comment
Phil15: Sh*t I did not save my code before you erased three missions, that was dumb yes but a little warning...
|
April 14, 2023, 3:25 p.m. |
+ 1 |
for Comment
dorellaurent: Very clear !
|
April 9, 2023, 3:42 p.m. |
+ 3 |
for
Complex nails-StefanPochmann
|
April 1, 2023, 12:39 p.m. |
+ 1 |
for Comment
veky: It's not, see @StefanPochmann 's analysis above. But it's still nice. :-)
|
March 29, 2023, 5:15 p.m. |
+ 3 |
for
A250000-kdim
|
March 14, 2023, 11:08 p.m. |
+ 1 |
for Comment
paf: Ha! This is really creative way. It is interesting to go through =) But 3 lambda functions... how fa...
|
March 13, 2023, 9:57 p.m. |
+ 1 |
for Comment
kudinov.feodor: thought about heap, but ended with bisect search not to mangle signs I wonder which solution is more...
|
March 13, 2023, 9:38 p.m. |
+ 1 |
for Comment
Nocturne13: Maybe this solution is not easy to grasp at first glance, bul it looks rather accurate, definitely b...
|
March 12, 2023, 1:13 a.m. |
+ 1 |
for Comment
amandel: Just the formula.
|
March 11, 2023, 8:39 p.m. |
+ 1 |
for Comment
U.V: Strange solution, but it works !
|
March 10, 2023, 3:06 p.m. |
+ 1 |
for Comment
kdim: Оriginal!
|
March 9, 2023, 9 p.m. |
+ 1 |
for Comment
Nocturne13: So, I can't say that I have fully grasped this solution, but it looks rather neat. Well done!
|
March 9, 2023, 8:56 p.m. |
+ 1 |
for Comment
dig: Omg! What a mathematical aproach!
|
Feb. 19, 2023, 9:53 p.m. |
+ 1 |
for Comment
kamerilov: Great!
|
Feb. 12, 2023, 12:08 a.m. |
+ 1 |
for Comment
CDG.Axel: Tried to use 'eval', but code becomes longer despite the fact that eval is a cheat...
|
Feb. 4, 2023, 10:03 p.m. |
+ 1 |
for Comment
Kolia951: Good job! I thought that everybody will using `eval()` here to solve =)
|
Feb. 2, 2023, 10:47 p.m. |
+ 1 |
for Comment
lisovsky: Excellent recursive algorithm. I've looked at a lot of solutions, but I haven't seen any shorter.
|
Jan. 31, 2023, 5:35 p.m. |
+ 1 |
for
First-Kisielev
|
Jan. 29, 2023, 10:19 p.m. |
+ 1 |
for Comment
lisovsky: a good solution is to use data classes
|
Jan. 22, 2023, 2:36 p.m. |
+ 1 |
for Comment
U.V: Good example for education purposes.
|
Dec. 2, 2022, 2:40 p.m. |
+ 1 |
for Comment
jakubbortlik: Nice use of `divmod()`!
|
Nov. 29, 2022, 1:26 p.m. |
+ 1 |
for Comment
bogdan.n.petru: wow, the _"(a > b) - (a < b)"_ part stayed in my mind for a while. I would of never thinked to subst...
|
Nov. 29, 2022, 1:24 p.m. |
+ 1 |
for Comment
fiftigreen: Great solution.
|
Nov. 28, 2022, 9:33 p.m. |
+ 1 |
for Comment
lisovsky: Very good!
|
Nov. 25, 2022, 7:38 a.m. |
+ 1 |
for Comment
veky: Yeah, preparing the grid into a graph for Dijkstra is a lot of work. It can be shortened somewhat by...
|
Nov. 17, 2022, 11:24 a.m. |
+ 1 |
for Comment
sivin79: good solution
|
Nov. 16, 2022, 8:38 p.m. |
+ 1 |
for
Pairwise twice-amandel
|
Nov. 15, 2022, 9:54 p.m. |
+ 1 |
for
Duck duck groupby-veky
|
Nov. 15, 2022, 9:28 p.m. |
+ 1 |
for Comment
veky: yes, it's nive that in absence of zeros, two first ducks are in fact the same. 🦆😅
|
Nov. 15, 2022, 3:06 p.m. |
+ 1 |
for Comment
jakubbortlik: I wrote a very similar solution (except I used `bool()` :) and a non-greedy `r'\b.*?\b'`), but your ...
|
Nov. 8, 2022, 12:21 p.m. |
+ 1 |
for Comment
veky: Ah, yes. Sorry. I know CiO has a feature where you reply by email so that you put in first line how ...
|
Nov. 7, 2022, 10:52 a.m. |
+ 1 |
for Comment
dx2-66: Good point, I used to treat lists as dynamic arrays but in fact list based queue is sufficient indee...
|
Nov. 5, 2022, 11:47 p.m. |
+ 1 |
for Comment
amandel: Terribly inefficient!
|
Oct. 25, 2022, 9:07 p.m. |
+ 3 |
for
Transform and compare-veky
|
Oct. 24, 2022, 4:42 p.m. |
+ 1 |
for Comment
U.V: Original solution with using operator and dict
|