Total Work Experience from Employment History

Given a list of a user's work experiences, each with a start month and an end month (format YYYY-MM; the end month may be Present, meaning the current month), compute the user's total years of wor...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: