Given a list of birth and death years for N people, return the earliest year with the maximum population. A person is counted in the population for every year in the range [birth, death - 1].
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.