Python || Easy To Understand || Short ||
Here we know that all years in input lies in a range of 1950-2050, so we can make an array of 101 size and for every persons lifespan increment the count by 1 f
**Here we know that all years in input lies in a range of 1950-2050, so we can make an array of 101 size and for every persons lifespan increment the count by 1 for his span in that range.\nIn the end we will return the index of max val + 1950**\n\n```\nclass Solution:\n    def maximumPopulation(self, logs: List[List[int]]) -> int:\n        \n        # As we have only 101 possible years, make an array for them.\n        arr = [0]*101\n        \n        for x,y in logs:\n            for i in range(x,y):\n                # for a person living range increment array count by 1; accounting the life span of that person.\n                arr[i-1950] += 1\n    \n        index = arr.index(max(arr))\n        return index + 1950\n\t\t\n```
[]