15
MMM_AAA_NNN
1 14 24
1112/ 1195
MMMAAANNN
Last seen 6 years ago
Member for 9 years, 2 months, 3 days
Difficulty Normal
Best reviews / Newest reviews
First-madao 1 1
Checking for borders (a, h, 1) is actually not necessary, because input is always correct and there are no pawns outside the board. This code can be simplified. Also you never use your "alphabet" list. More
First-zero_loss 1
Thumbs up for including detailed explanation so everyone can clearly see how it works. More
First-intspt
There is no need to check for j == 10 actually, you could include this in the next check 10 <= j <=19 More
First-nesterione
Recursion is nice, and also looks clear. More
First-evoynov
Why "z"? Maybe "h"? But actually, you really don't have to check for out-of-bounds pawns, because the input is supposed to be always correct. Those checks are not necessary for success. I made this mistake myself at first though :) More
First-Amachua
It is not very clear, I had to spend some time to understand how it works. But otherwise nice solution. More
First-nesterione
Actually counter can be shortened to: count += (ch1 in pawns) or (ch2 in pawns) More
random ver2-yukirin
This is much more stable indeed, and quite speedy too. I tried five times, not a single failure! Good job. More
First-JamesArruda 1
Not very clear at first glance, but I learned something from this, so thumbs up. More
Recursion-kendriu
Nice recursion but not so easily understandable for a newbie. More
Stackless-blabaster
I tried the same approach but it was much longer than yours. Very nice! More
4 ifs in a loop-odwl
I like this one very much. I will base my second solution on yours. More
59-Volatility
This goes down to 58 with a minor tweak to save one space: int==type(L)and More
monte carlo-ciel
I had the idea to use random, but never tried actually. How long does it take to calculate family with 17 people and 5 couples? (I mean the last test, with Louis and others). More
First-mrpoush
.zfill(digits) is an equivalent for .rjust(digits, '0') More
chr/ord manipulation-IanSolWhite
Very nice. Short and readable. More
True one-liner-MMM_AAA_NNN
I've broken it into multiple lines for the purpose of readability only. Will work if all lines joined into one. More