15
Last seen 7 years ago
Member for 8 years, 1 month, 27 days
Difficulty Normal
permutations is always a good tool, as well as other functions in itertools.
I hope I can have the idea to use them at first time when I saw the problem.
More
Flood fill function is good, reduce the code redundancy. I should fix my code now.
More
sorted(common)
Learn it, I use list function for a set which is unnecessary.
More
I used to think we must use the original parameter to get passed. It gives me new knowledge, brilliant. :)
More
Yes, abs for timedelta is interesting, in this case is the same but can be helpful in others.
More
w1.endswith(w2) or w2.endswith(w1)
using
w1.endswith(w2)
is also ok i think.
More