23
Tomasz Wójcik
Last seen 5 days ago
Member for 4 years, 2 months, 25 days
Difficulty Normal
I believe that it can be done more easily.
You don't need a special case for len (array) == 1: the code in 'else' will do the same
More
I think that re.sub() only makes sense when you use a regular expression. If everything fits, you better use replace().
More
I think it is better to work with objects than to treat objects as text.
More
I think this solution too complicated.
The most frequent day of the week of the year is the last day of the year :)
When there is a common year of such days, we have 2.
More
Maybe better is use "set" instead of list already_yield. W that case you don't need check "substring not in already_yield"
More
You don't need to check if the string contains "." or "," just replace them with ""
More