15
Last seen 7 years ago
Member for 8 years, 1 month, 27 days
Difficulty Normal
Use twice int can save some lines, so there are many choices.
And there is the charm of coding. :)
More
w1.endswith(w2) or w2.endswith(w1)
using
w1.endswith(w2)
is also ok i think.
More
Yes, abs for timedelta is interesting, in this case is the same but can be helpful in others.
More
I used to think we must use the original parameter to get passed. It gives me new knowledge, brilliant. :)
More
Flood fill function is good, reduce the code redundancy. I should fix my code now.
More
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
Interesing!It does expand my mind to solve problem.
Should be in creative i guess.
More
I use 20 lines to solve the same problem.
It's terrific to see such brilliant way.
More