Python One-Liner
\ndef maximumPopulation(self, logs: List[List[int]]) -> int:\n      return max(accumulate(sorted(zip(chain(*logs), cycle((1, -1)))), lambda x, y: (y[0], y[1] + 
```\ndef maximumPopulation(self, logs: List[List[int]]) -> int:\n      return max(accumulate(sorted(zip(chain(*logs), cycle((1, -1)))), lambda x, y: (y[0], y[1] + x[1])), key=itemgetter(1))[0] \n```\n\nRoughly equivalent to (but here we do max and accumulate together in one for loop):\n```\ndef maximumPopulation(self, logs: List[List[int]]) -> int:\n  events = []\n  for start, end in logs:\n\tevents += (start, 1), (end, -1)\n  events.sort()\n  maxi = 0\n  max_year = 0\n  count = 0\n  for year, effect in events:\n\tcount += effect\n\tif count > maxi:\n\t  maxi = count\n\t  max_year = year\n  return max_year\n```
['Python']