C++ simple & fast solution (faster than 100%)
\n// Elharem Soufiane\nclass Solution {\npublic:\n    int maximumPopulation(vector<vector<int>>& logs) {\n        int max = 0, earliest_year;\n        vector<in
```\n// Elharem Soufiane\nclass Solution {\npublic:\n    int maximumPopulation(vector<vector<int>>& logs) {\n        int max = 0, earliest_year;\n        vector<int> years(101);\n        for(vector<int> log : logs){\n            for(int year = log[0]; year< log[1]; year++)\n                years[year - 1950]++;\n        }\n        for(int year=0 ; year <= 100; year++){\n            if(years[year] > max){\n                max = years[year] ;\n                earliest_year = year;\n            }            \n        }\n        return earliest_year + 1950;\n    }\n};\n```
['Array', 'C', 'C++']