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 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 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 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. 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 27, 2023, 2:16 p.m. |
+ 1 |
for Comment
U.V: Short and clear. I like this solution.
|
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 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, 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 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 1, 2023, 12:39 p.m. |
+ 1 |
for Comment
veky: It's not, see @StefanPochmann 's analysis above. But it's still nice. :-)
|
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. 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. 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. 24, 2022, 4:42 p.m. |
+ 1 |
for Comment
U.V: Original solution with using operator and dict
|
Oct. 21, 2022, 8:47 p.m. |
+ 1 |
for Comment
zalikovka: Thanks for knowledge!
|
Oct. 21, 2022, 11:50 a.m. |
+ 1 |
for Comment
kdim: Elegant solution!
|
Oct. 9, 2022, 10:07 a.m. |
+ 1 |
for Comment
U.V: Fine and creative solution. It's really pythonic solution !
|
Oct. 8, 2022, 11:04 a.m. |
+ 1 |
for Comment
Phil15: Good eye! Weirdly, as we could have thought it was mainly copy/paste, this error is not present in t...
|
Oct. 5, 2022, 6:17 p.m. |
+ 1 |
for Comment
amandel: You're right. I realized it half an hour ago, and posted the new solution.
|
Oct. 5, 2022, 6:10 p.m. |
+ 1 |
for Comment
Guest_5a80b5eb: I agree that this is a good solution, but I don't think it really saves memory. The 'sorted' functio...
|
Oct. 1, 2022, 2:58 p.m. |
+ 1 |
for Comment
mengqi.chen85: so neat~
|
Sept. 21, 2022, 4:58 p.m. |
+ 1 |
for Comment
veky: Here is my reordering: https://py.checkio.org/mission/friendly-number/publications/veky/python-3/jue...
|
Sept. 21, 2022, 12:57 p.m. |
+ 1 |
for Comment
veky: Yes, your solution is very nice. Though I would write that search at the beginning differently. :-) ...
|
Sept. 18, 2022, 8:16 p.m. |
+ 1 |
for Comment
freeman_lex: Thanks, I will add that values should be sets!
|
Sept. 18, 2022, 1:41 p.m. |
+ 1 |
for Comment
Phil15: When clicking "Check", I only get `ErrUchDownloadPackage` error message, no matter what code I submi...
|
Sept. 12, 2022, 10:56 a.m. |
+ 1 |
for Comment
dorellaurent: Very smart and effective ! Congratulations.
|
Aug. 23, 2022, 9:55 p.m. |
+ 1 |
for Comment
oduvan: I remember about that issue. Will be fixed
|
July 26, 2022, 10:22 a.m. |
+ 1 |
for Comment
karlian: Creative _double-set-counting_ method!
|
July 13, 2022, 10:10 a.m. |
+ 1 |
for Comment
Ulukai85: Oh, that makes sense, right. Thanks for the answer!
|
July 13, 2022, 9:43 a.m. |
+ 1 |
for Comment
zwerkoff: "[]check.txt", "[]check.txt" is True. Your result is False!
|
July 13, 2022, 9:42 a.m. |
+ 1 |
for Comment
all-the-disasters: why do you think it trivializes it?
|
July 13, 2022, 9:41 a.m. |
+ 1 |
for Comment
Ulukai85: Interesting solution, just using error handling. Perhaps you could replace (hehe) line 8 with "retur...
|