57
veky
22 48 64 Leader of the month
44587/ 53887
Last seen 3 hours ago
Member for 11 years, 6 months, 7 days
Difficulty Advanced
We shall not cease from exploration, and the end of all our exploring will be to arrive where we started and know the place for the first time.

Best reviews / Newest reviews
First-gres_18
You could have written list(list(list([a,b]))), the effect would be the same. :-P More
First-newdazhu
Straightforward. Not very funny, but ok. More
First-Maj
";" might be funny if everything else was in C style, but "sum" surely doesn't fit there. :-] More
Long string!-tetedemerou
Nice reducing to addition of natural numbers. :-) pattern can be much nicer written using list comprehension: [i in range(b) for i in range(a)]. ;-) More
First-lesenv 1
Straightforward. A hint: function tri can be declared as def tri(a,b,c), and called as tri(*act). That way you don't need line 2. This is not Perl, you can actually tell what your arguments are. ;-) More
First-bukebuer 1
Nice usage of pop, but the variable s is used in a really weird way here. (With "nonlocal" it would be funnier.:) Those "+=" are in fact just "=", and "initialization" to 0 isn't needed. Also, pop could be used in both branches (or better, before "if"), so condition could be simplified. Also, I h More
First-Juge_Ti 1
Sorry for the (unintentional) plagiarism. :-) More
First-mombius 1
Sorry, but popping empty stack is not your only problem. Appending at end is much smarter than inserting at beginning all the time, your dic is "backwards" (aestetics, true, but doesn't it just look wrong to you?:), and those parentheses are duplicated in three places in the code. And oh, that "T More
Monster-veky
I botched it (pressed publish too early). Inner "".join is not needed. More
Short-gflegar 2
See mine for quite another definition of "short". ;-) More
First-htamas
Cool. Readable and to the point. More
Inefficient monster-gflegar
If you like using external stuff, those little lambdas are already there: change "lambda x, y: y/abs(y) * x" to "math.copysign" change "lambda x, y: x * y" to "operator.mul" Batteries included. ;-) More
DP-gflegar
Yes, that's the obvious one. :-) More
Commented-Miaou
LOL. This is the reason why I don't comment my code. :-] There would be more comments than code. :-) More
First-jcg
,key = lambda x : (x[0],x[1]) isn't really needed in line 32. More
First-ciel 1
32?? LOL. You might have as well put 53 there. :-P Python(3) int is not fixed size, this is not C. More
First-odwl
LOL. Nice using of the fact that 10>2. :-D More
Don't read this-Piko
LOL. Nice code. May I ask, why the strange formatting? More
Recursive (and ugly)-Juge_Ti
We have a very similar solution. :-) BTW, I ROTFLed at 'Aaaaaaarrrrgghhhhh!'. :-D Wasn't it better to raise some appropriate exception? (PermissionError sounds very appropriate.:)) More
4D-veky
As Express Delivery was just A* in 3D (n x n x 2), this is just A* in 4D (4 x 4 x 4 x 4). Precise formulation of analogy is left as an excercise to the reader. ;-D More