16
Florent Colombet
Last seen 1 year ago
Member for 11 years, 14 days
Difficulty Normal
Nice solution :)
You can improve it a bit more by replacing :
- "e in 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'" by "e.isalnum()"
- "chr((10-(sd%10) if sd%10 else 0)+48)" by "str(10-(sd%10))[-1]"
- and eventually "s[::-1]" by "reversed(s)" for being clearer (but longer t
More
Nice solution :)
However the case N == 2 is unnecessary !! Lines 9 and 10 can be removed and the code still works.
More
Glad that the bugs I reported could have been fixed and then improve the task. Even with those bugs I had a good time solving it !
More