1118. Number of Days in a Month
https://leetcode.com/problems/number-of-days-in-a-month
Description
Given a year year and a month month, return the number of days of that month.
Example 1:
**Input:** year = 1992, month = 7
**Output:** 31Example 2:
**Input:** year = 2000, month = 2
**Output:** 29Example 3:
**Input:** year = 1900, month = 2
**Output:** 28Constraints:
1583 <= year <= 21001 <= month <= 12
ac
Last updated
Was this helpful?