You are given a two dimensional integer array logs where each logs[i] = [birth_i, death_i] indicates the birth and death years of the
The population of a given year is the total number of people alive during that year. A person is considered alive during every year in the inclusive range from birth_i to death_i
Return the earliest year that achieves the maximum population.
Note: A person is not considered alive in their death year
death_i.
Constraints:
logs.length
birth_i death_i
You are given a two dimensional integer array logs where each logs[i] = [birth_i, death_i] indicates the birth and death years of the
The population of a given year is the total number of people alive during that year. A person is considered alive during every year in the inclusive range from birth_i to death_i
Return the earliest year that achieves the maximum population.
Note: A person is not considered alive in their death year
death_i.
Constraints:
logs.length
birth_i death_i