May 14, 2024, 1:58 p.m. |
+ 1 |
for Comment
Georgyphyton: Such a funny decision! It's a great idea to use deque
|
May 2, 2024, 8:24 p.m. |
+ 1 |
for Comment
adamspj: I've got to give you credit since I've never used the default argument to max before, and thus I've ...
|
May 1, 2024, 4:06 p.m. |
+ 1 |
for Comment
amandel: Your solution is identical to mine, both were published on the same day (mine is on speedy). Quite a...
|
April 26, 2024, 7:46 p.m. |
+ 1 |
for Comment
BootzenKatzen: I think the use of maketrans() is very smart (I didn't know it existed until now) but I had a hard t...
|
April 26, 2024, 7:46 p.m. |
+ 1 |
for Comment
BootzenKatzen: Man, I used the same logic, but you managed to put it into one line! Nice work!
|
Feb. 20, 2024, 6:26 p.m. |
+ 1 |
for Comment
mildm: Very easy to read without multiple if/else statements
|
Jan. 13, 2024, 8:49 p.m. |
+ 1 |
for Comment
agujasym: I really like how this solution looks, with the four o's elegantly repeated slightly further to the ...
|
Jan. 3, 2024, 1:13 p.m. |
+ 1 |
for Comment
nahandove: Nice use of functions for this task.
|
Dec. 20, 2023, 2:14 p.m. |
+ 1 |
for Comment
Nocturne13: Great solution with detailed comments.
|
Nov. 6, 2023, 7:44 a.m. |
+ 1 |
for Comment
tamagoyaki: I thought of almost the same code, but the "~i" part is a better solution
|
Nov. 5, 2023, 1:08 p.m. |
+ 1 |
for Comment
trinfin: I would like to read a comment about why a list is made out of the three integers
|
Oct. 30, 2023, 6:27 p.m. |
+ 1 |
for Comment
mlahor: Great solutions, I would say the third one is the most "algorithmic and fast", and probably the seco...
|
Sept. 6, 2023, 1:47 p.m. |
+ 1 |
for Comment
BootzenKatzen: Making it look easy!! (Which I suppose it is for some) Learned about defaultdict today, so next time...
|
Aug. 14, 2023, 4:35 p.m. |
+ 1 |
for Comment
jemg2030: Your method for transposing the lines with zip_longest is pretty impressive! Congratulations!!
|
July 12, 2023, 5:06 a.m. |
+ 1 |
for Comment
amandel: Quite interesting: we both have recursive solutions, using @cache, and they look quite different, ho...
|
June 11, 2023, 12:53 p.m. |
+ 1 |
for Comment
rybld2: Honestly it was very difficult! Cheer
|
June 9, 2023, 10:33 a.m. |
+ 1 |
for Comment
flowerinapot: What a delightful solution! Delight
|
June 8, 2023, 4:01 p.m. |
+ 1 |
for Comment
dig: Nice separation of concepts, very clear :)
|
June 7, 2023, 9:57 p.m. |
+ 1 |
for Comment
BootzenKatzen: Oh! the (7 - d.weekday()) is a clever way to solve the math for adding days to get past the weekend!...
|
June 2, 2023, 8:03 p.m. |
+ 1 |
for Comment
jemg2030: Wow. Beautiful code. Especially using the pop method’s return value as argument for insert().
|
May 19, 2023, 7:31 a.m. |
+ 1 |
for Comment
Germ: Why is this considered speedy when it uses the slowest possible algorithm?
|
May 8, 2023, 9:01 a.m. |
+ 1 |
for Comment
StefanPochmann: Somewhat golfed: ```python from sympy.combinatorics.permutations import Permutation fifteen_puzzle=l...
|
May 5, 2023, 9:10 p.m. |
+ 1 |
for Comment
przemyslaw.daniel: how about a little simplification def count_morse(message: str, letters: str) -> int: return not let...
|
April 30, 2023, 8:50 p.m. |
+ 1 |
for Comment
H0r4c3: Good idea with the setdefault() method! Great solution!
|
April 30, 2023, 2:25 p.m. |
+ 1 |
for Comment
H0r4c3: Interesting solution! Bookmarked! I learn a lot of things from it: operator.methodcaller(name, /, *a...
|
April 30, 2023, 7:20 a.m. |
+ 1 |
for Comment
H0r4c3: Great solution! Because I am a fan of regex, I used re.findall('[\D]+[\d]+', password) for the secon...
|
April 29, 2023, 12:28 p.m. |
+ 1 |
for Comment
H0r4c3: A lot of things to learn from this solution! The compress(data, selector) function creates an iterat...
|
April 29, 2023, 12:17 p.m. |
+ 1 |
for Comment
H0r4c3: Great solution, great explanation!
|
April 29, 2023, 8:14 a.m. |
+ 1 |
for Comment
H0r4c3: Great solution! Definitely, I will study the heapq module because it's very useful.
|
April 20, 2023, 7:20 p.m. |
+ 1 |
for Comment
TheRing: Simple but logical. Nice solution to use divmod to get the side of the square and use the 4 possible...
|
April 14, 2023, 4:28 p.m. |
+ 1 |
for Comment
TheRing: Great solution, you helped me to understand heapq more. And this (*ranges, r) thing is amazing!
|
April 13, 2023, 7:42 p.m. |
+ 1 |
for Comment
H0r4c3: Nice use of the Heap queue algorithm module.
|
April 12, 2023, 6:10 p.m. |
+ 1 |
for Comment
H0r4c3: Great solutions! A lot to learn from all solutions!
|
April 12, 2023, 6:10 p.m. |
+ 1 |
for Comment
mewright: I hadn't seen the deque used before; interesting solution
|
March 27, 2023, 7:41 p.m. |
+ 1 |
for Comment
Pavellver: This is a great solution which I do not know why I haven't thought of it before!
|
March 21, 2023, 7:39 a.m. |
+ 1 |
for Comment
StefanPochmann: As a speedcuber, I'm loving this. It's like [these six edges](http://www.randelshofer.ch/rubik/patte...
|
March 11, 2023, 9:12 p.m. |
+ 1 |
for Comment
juestr: Python's rather new built-in `int.bit_length` makes `msb` superfluous. Curiously everyone copied it ...
|
Feb. 5, 2023, 9:18 p.m. |
+ 1 |
for Comment
mu_py: I gave 3 points: - one for the solution - two for having "?!" in the subject line Normally I strain ...
|
Jan. 31, 2023, 2:52 p.m. |
+ 1 |
for Comment
Kolia951: Interesting approach with using groupby(), I was thinking about it during the mission solving, but d...
|
Jan. 17, 2023, 4:27 p.m. |
+ 1 |
for Comment
lisovsky: Nice solution! itertools.starmap is cool!
|
Dec. 24, 2022, 5:04 p.m. |
+ 1 |
for Comment
kt1729: I have just learned the *yield* statement and the *generator* function from your code. Thank you!
|
Nov. 1, 2022, 3:50 p.m. |
+ 1 |
for Comment
mu_py: thanks for bringing `~` back to my attention
|
Oct. 2, 2022, 6:36 a.m. |
+ 1 |
for Comment
lisovsky: Thanks! I now know about the _deque_ class and the rotate method!
|
Sept. 20, 2022, 4:17 p.m. |
+ 1 |
for Comment
juestr: That's a rather _creative_ solution.
|
Sept. 11, 2022, 8:40 p.m. |
+ 1 |
for Comment
Selindian: I was also using negative weights with heapq similar to your 2nd solution. I agree, it would have be...
|
Sept. 5, 2022, 7:13 a.m. |
+ 1 |
for Comment
kdim: Your solution is really fast, mine is 4 times slower. My hat off to you.
|
Aug. 29, 2022, 6:48 a.m. |
+ 1 |
for Comment
veky: A perfectly ordinary solution, but it gives a completely new meaning to the phrase "f-string". :-DD
|
July 11, 2022, 5:49 p.m. |
+ 1 |
for Comment
viktor.chyrkin: This is nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnice
|
July 11, 2022, 5:46 p.m. |
+ 1 |
for Comment
vtflnk: I liked that you indicated the source of the algorithm - this is very important if we want to learn ...
|
May 17, 2022, 2:32 p.m. |
+ 1 |
for Comment
lxf42: Very nice, double re power, as well as short and very readable (well, as readable as regex can be)
|
April 28, 2022, 11:53 a.m. |
+ 1 |
for Comment
phongtt2: Good to know the "deque" method from collections module. After doing some research I found that Dequ...
|
April 9, 2022, 7:24 a.m. |
+ 1 |
for Comment
vedranson: deque, rotate()... Thank you for reminding me of these.
|
March 4, 2022, 7:54 a.m. |
+ 1 |
for Comment
iskenderunbtr: I couldn't think it could be that way. a different solution, thank you
|
March 4, 2022, 7:52 a.m. |
+ 1 |
for Comment
trouble6174: clear and clever, learned a lot from this solution, thank you
|
Feb. 16, 2022, 7:23 a.m. |
+ 1 |
for Comment
mikaeldovbnia: Nice clear solution. Really like how you made the part where you make the sum of 'items'. Didn't thi...
|
Feb. 5, 2022, 7:57 a.m. |
+ 1 |
for Comment
H0r4c3: A great solution with comments!
|
Jan. 27, 2022, 4:06 p.m. |
+ 1 |
for Comment
Alexey.K.: it's scary and beautiful in same time!
|
Jan. 15, 2022, 8:26 p.m. |
+ 1 |
for Comment
viktor.chyrkin: This is so good. I like it. a whoopdy whole 4 solutions
|
Jan. 12, 2022, 9:47 a.m. |
+ 1 |
for Comment
veky: How about `swap_nodes([1, 0, 3, 4])`? I don't think that's what you wanted.
|
Dec. 6, 2021, 4:59 p.m. |
+ 1 |
for Comment
juestr: Cool. There's `graphlib.TopologicalSorter` in the stdlib now too, but it needs some tweaking to get ...
|
Dec. 1, 2021, 8:28 p.m. |
+ 1 |
for Comment
ogoro: many thanks for insight on coroutine and passing values to generator function!)
|
Oct. 4, 2021, 8:47 p.m. |
+ 1 |
for Comment
tssrkt777: Solutions of math teachers are always amazing.)
|
Oct. 4, 2021, 6:38 a.m. |
+ 1 |
for Comment
entreoutros: Very clean and well commented, thank you for this solution!
|
Sept. 18, 2021, 6:28 a.m. |
+ 1 |
for Comment
CDG.Axel: Great span find and merging cycle!
|
Aug. 5, 2021, 3:36 p.m. |
+ 1 |
for Comment
dubi95: Very good solution! Another collection I have learned about thanks to this website!
|
June 29, 2021, 7:23 p.m. |
+ 1 |
for Comment
leggewie: nice proof that there is more than one way to skin the cat!
|
April 11, 2021, 6:51 a.m. |
+ 1 |
for Comment
not_real: ⛳👍 Liked [topological_sort](https://docs.sympy.org/latest/modules/utilities/iterables.html#sympy.uti...
|
March 15, 2021, 2:02 p.m. |
+ 1 |
for Comment
veky: Specialcasing what shouldn't be specialcased, sorting to find the minimum, list "comprehensions" whi...
|
March 14, 2021, 11:17 p.m. |
+ 1 |
for Comment
ogoro: many thanks for the insight on singledispatchmethod!) inspired by this solution - used it without an...
|
March 14, 2021, 8:54 p.m. |
+ 1 |
for Comment
marat.m: Wow. Beautiful code. Especially using the pop method's return value as argument for append().
|
March 8, 2021, 7:39 a.m. |
+ 1 |
for Comment
V.Shkaberda: I like how you click "Best solutions" without author displaying, see a sophisticated solution and ha...
|
Feb. 26, 2021, 11 a.m. |
+ 1 |
for Comment
Sim0000: I can write **secret_room = T.\_\_getitem\_\_** :-)
|
Feb. 22, 2021, 3:19 p.m. |
+ 1 |
for Comment
ogoro: it is interesting to know about datetime format code OS difference, thank you!
|
Feb. 12, 2021, 1:17 p.m. |
+ 1 |
for Comment
colinmcnicholl: Well done on solving the mission. Good use of itertools.product method. Your code could have been a ...
|
Feb. 7, 2021, 6:11 p.m. |
+ 1 |
for Comment
ogoro: amazing solution! i learned not only about Markov chains and matrices - but also python instruments ...
|
Feb. 7, 2021, 7:58 a.m. |
+ 1 |
for Comment
ogoro: i was checking if BFS is possible using recursion instead of queue - and it turned out it is) https:...
|
Feb. 4, 2021, 3:49 p.m. |
+ 1 |
for Comment
ogoro: thanks for the interesting solution! i also used pairwise from recipes and superset check) did you k...
|
Jan. 20, 2021, 10:38 a.m. |
+ 1 |
for Comment
ogoro: what would you say about [perimeters](https://py.checkio.org/mission/paper-dice/publications/ogoro/p...
|
Dec. 11, 2020, 9:11 a.m. |
+ 1 |
for Comment
GrigorySol: It doesn't looks "Elementary+" %) But thank you anyway for this puzzle, I learned a lot by solving i...
|
Dec. 10, 2020, 11:20 a.m. |
+ 1 |
for Comment
r_tchaik: Good solution with great documentation!
|
Dec. 1, 2020, 10:49 p.m. |
+ 1 |
for Comment
GrigorySol: Good explanation and readability. But this is too slow. 8x slower than mine and over 50x slower than...
|
Nov. 26, 2020, 8:42 a.m. |
+ 1 |
for Comment
rybld2: the reading of a master enriches, was he French professor of mathematics
|
Nov. 18, 2020, 7:50 a.m. |
+ 1 |
for Comment
tobywhc: clever way to transform the problem to the origin.
|
Nov. 17, 2020, 5:23 p.m. |
+ 1 |
for Comment
Striga: Thanks! Learned something new!
|
Nov. 8, 2020, 2:54 p.m. |
+ 1 |
for Comment
2010min0ru: Nice optimization with heapq. I need to practice more with it >_<
|
Oct. 8, 2020, 4:33 p.m. |
+ 1 |
for Comment
Ulukai85: Very nice solution, I had no idea of that use for 'from' with yield. I also really like your comment...
|
Sept. 14, 2020, 7:40 p.m. |
+ 1 |
for Comment
veky: * jackdied: Does your class have two methods, one of which is `__init__`? * veky: errrm... no? :-) (...
|
July 8, 2020, 2:20 p.m. |
+ 1 |
for Comment
Pouf: Very nice solution, I wish I had though about it :) Implementation is very clear as well !
|
May 25, 2020, 11:44 a.m. |
+ 1 |
for Comment
Urza: Three interesting builds earns three pluses. I particularly like the second one, as I didn't realize...
|
April 28, 2020, 7:30 a.m. |
+ 1 |
for Comment
colinmcnicholl: +1 I think that pretty much all the solutions are impressive. Your solution seems to be very fast. T...
|
April 21, 2020, 7:55 a.m. |
+ 1 |
for Comment
piter239: TIL about maxsplit, thank you!
|
April 20, 2020, 12:25 p.m. |
+ 1 |
for Comment
igharok: So here I am for learning **_fractions_** :)
|
April 12, 2020, 6:54 a.m. |
+ 1 |
for Comment
megaexception: Wow. It looks like minified javascript on most web-pages! :-D
|
Dec. 14, 2019, 11:06 a.m. |
+ 1 |
for Comment
colinmcnicholl: 3 votes via forum. I usually don't put a space between the '+/-' and number. Must have had finger tr...
|
Dec. 12, 2019, 10:37 a.m. |
+ 1 |
for Comment
colinmcnicholl: + 3 I love seeing how small differences in approach can produce quite different looking code to achi...
|
Nov. 15, 2019, 8:25 a.m. |
+ 1 |
for Comment
Ylliw: Very nice use of divmod and yield, great solution.
|
Nov. 8, 2019, 3:22 p.m. |
+ 1 |
for Comment
-dead-inside-: Awesome, at least now I know what I can just count odd divisors, if numbers are small. :)
|
Nov. 8, 2019, 3:22 p.m. |
+ 1 |
for Comment
MaxLviv: Kind of magic for me. Great code.
|
Sept. 7, 2019, 8:48 a.m. |
+ 1 |
for Comment
bsquare: @Phil15 I like your solution which is one of few I've seen here, which is OOP-like with inheritance ...
|
Sept. 3, 2019, 3:29 p.m. |
+ 1 |
for Comment
JamesArruda: This also belongs in 'speedy'. Very nice implementation.
|