12
Kote Pruidze
Last seen 4 months ago
Member for 8 years, 11 months, 3 days
Difficulty Normal
better use "strings.letters_low" instead "set('abcdefghijklmnopqrstuvwxyz')"
More
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
its OK, but I recommended for one return in function if it is possible
many returns is seems little mess, IMHO
More
why you dont reuse ‘end’ variable for last line?
the
return text[0:end]
is more suitable, isnt?
More
the
text.split()[0]
is more siutable,
couse it leaves
more ways open, isnt?
More
May be in max function the returning [-1] element being more elegant and speedy?
More
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