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
▲ Console

Install Talent Arabia

Get instant access to jobs and career tools on your device.