8
Last seen 1 year ago
Member for 9 years, 1 month, 16 days
Difficulty Normal
The part
int(number / 100)
can be shortened to
number // 100
and I think those
str(..)
calls are unnecessary. As well as the check for zero input (the problem statement didn't allow zero input).
But it is a nice solution, overall.
More
By returning
return path + mark
instead of
return path
you add one unnecessary letter to the solution.
But apart from this, very nice solution!
More