12
pruidzeko
1 10 19
653/ 745
Kote Pruidze
Last seen 4 months ago
Member for 8 years, 11 months, 3 days
Difficulty Normal
Best reviews / Newest reviews
First-patrick_swiss 1
better use "strings.letters_low" instead "set('abcdefghijklmnopqrstuvwxyz')" More
First-steelhawk.rus
multiple returns for this task is not pythonic, IMHO.. More
First-Tinus_Trotyl
I stopped using single-line solutions, because they are not readable. But perhaps this only makes sense in terms of increasing the speed of calculations. It will be necessary to check this aspect. More
First-aya.kanazawa 1
its OK, but I recommended for one return in function if it is possible many returns is seems little mess, IMHO More
First-OlexD
The "key=lambda x: abs(x)" not necessary. key=abs is enough. More
First-Kwangchiu 1
OK, but 'n' is not necessary there More
Second-colinmcnicholl 1
OK, it's simple and pythonic.. More
First-koyana222 1
why you dont reuse ‘end’ variable for last line? the return text[0:end] is more suitable, isnt? More
First-aya.kanazawa 1
the text.split()[0] is more siutable, couse it leaves more ways open, isnt? More
regex use-keneda212
it is too complicated for this task, IMHO More
First-nrsaty
the task no needs regex for done, it is over IMHO.. More
First-thealfest1 2
May be in max function the returning [-1] element being more elegant and speedy? More
Stackless-blabaster
nice logic )) but it need many scans & replaces it reduce speed More
Lighting fast: No lists or range needed. Only arithmetics on progression!-pruidzeko
Becouse we have progression, and it sum(1...3) is (1+3)*3/2.. 1 2 3 3 2 1 ..3 times 4 (every columns sum there are 4) And so on.. More