11
Last seen 5 years ago
Member for 8 years, 5 months, 17 days
Difficulty Normal
use -1 to get parameter is good for such well format input! and I forgot collections' emptiness can be used as condition, which is more concise way to check before pop(Saw above this is from PEP8). Learned from you.
More
I have never got a dict object from iteration. Really learned new things here:)
More
nice solution. I forgot to handle the case of len == 0 , while if writting a function, it is necessary to check parameters.
More
int conversion is little bit wired here. could use // for floor division when len is odd, or just / when even
More
good way to handle edges by max and min function.
More