Classify the Difference Between Two Calendar Dates

Implement classify(date1, date2) to classify the difference between two calendar dates as:

  • EXACTLY_ONE_MONTH
  • WITHIN_ONE_MONTH
  • OVER_ONE_MONTH

Dates use the fixed format YYYY-MM-DD. Ig...

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: