Maximum Population Year
Easy
Arrays
Array
Counting
Given birth/death years, find earliest year with max population.
Constraints
1 ≤ logs ≤ 100
Examples
Example 1:
Input: 1993 1999
2000 2010
Output: 1993
Example 2:
Input: 1950 1961
1960 1971
Output: 1960
Tests:
Runtime:
Memory:
Test
Input:
Expected:
Got:
Click Run Code to test against sample cases, or Submit to test against all cases.
▲ Console