Sept. 21, 2021, 9:50 p.m. |
+ 1 |
for Comment
jsg-inet: At the end.... I could understand it! Very smart aproach using zip to obtain the tuples! Thanx for s...
|
April 28, 2020, 4:15 p.m. |
+ 1 |
for Comment
piter239: I agree it is not simple at all)) and I fully agree that * is needed in `zip(*matr)`. I tried to exp...
|
Nov. 23, 2017, 1:44 p.m. |
+ 1 |
for Comment
veky: It's nice and all, but haven't you overengineered it a bit? :-) The board has 64 squares, not a mill...
|
Nov. 23, 2017, 1:44 p.m. |
+ 1 |
for Comment
Cjkjvfnby: Nice solution. **open** is bad name for variable. Regular expression and **raise** not necessary (by...
|
Nov. 23, 2017, 1:44 p.m. |
+ 1 |
for Comment
macfreek: I fully agree with Positronic Llama and nickle. I'm even going so far to say that this is a task tha...
|
Nov. 23, 2017, 1:44 p.m. |
+ 1 |
for Comment
Cjkjvfnby: **open** is builtin python function (even it does not present here) don't shadow it. You doc string ...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
ysenko: sorted() returns list, so you don't need to do the following: points = list(sorted(set(points))) (pl...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
veky: Very high level code. Exact, documented, with references. I like it. BTW line 28 made me laugh. Avoi...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
nickie: A definite improvement over the straightforward and much shorter "count them all" in O(N^4). I'm won...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
bryukh: Pl write short solutions, Veky write understandable solutions (not for this task). What is going on?...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
veky: It's nice to see a task where PL uses fewer lines than me. :-D
|
Nov. 23, 2017, 1:39 p.m. |
+ 1 |
for Comment
veky: That's a bit contradictory. I mean, one of PEP8 main ideas are descriptive variable names, and while...
|
Nov. 23, 2017, 1:39 p.m. |
+ 1 |
for Comment
veky: Nice and straightforward. But Dijkstra is massive overkill. The point is, there are only two paths (...
|
Nov. 23, 2017, 1:38 p.m. |
+ 1 |
for Comment
bryukh: I am developer. I started to use checkio for fun. As usual, i need to write a code without tricky al...
|
Nov. 23, 2017, 1:37 p.m. |
+ 1 |
for Comment
veky: > I know, but it will be redunant operations OMG. Now we're talking about milliseconds. I really don...
|
Nov. 23, 2017, 1:35 p.m. |
+ 1 |
for Comment
guido: This is a perfectly acceptable solution for passwords, which are typically not very long. I am going...
|
Nov. 23, 2017, 1:34 p.m. |
+ 1 |
for Comment
username724: Hi, I'm not an adviser per se, in that I suck at python, but I think I can answer part of your quest...
|
Nov. 23, 2017, 1:33 p.m. |
+ 1 |
for Comment
gp48maz1: Could you explain why you did list(map(...)) on the outside? I read about using zip(*matr) or even l...
|
Nov. 23, 2017, 1:32 p.m. |
+ 1 |
for Comment
bryukh: "all" is a builtin name, so this is a bad choice.
|
April 11, 2014, 4:02 p.m. |
+ 1 |
for Comment
Cjkjvfnby: > For a local variable Shadowing built-in names is way to have possible mistakes. And some code high...
|
April 11, 2014, 4:02 p.m. |
+ 1 |
for Comment
veky: > open is bad name for variable. For a _local_ variable, in a function that hasn't the slightest int...
|
April 6, 2014, 9:54 p.m. |
+ 1 |
for Comment
bryukh: Double solution? :)
|
April 6, 2014, 9:54 p.m. |
+ 1 |
for Comment
bryukh: Nice heuristic.
|
March 4, 2014, 8:11 a.m. |
+ 1 |
for Comment
odwl: I think that list(zip(*matr)) is enough.
|