Tap here to switch tabs
Problem
Submissions

Problem: Number of Days in a Month

Number of Days in a Month determines how many days are in a specified month, given a year and a month number, including the correct length for February in leap years.

Statement

Given two integers year and month, return the number of days in that given month of the specified year.

Constraints:

  • 1583≤1583 \leq year ≤2100\leq 2100

  • 1≤1 \leq month ≤12\leq 12

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Number of Days in a Month

Number of Days in a Month determines how many days are in a specified month, given a year and a month number, including the correct length for February in leap years.

Statement

Given two integers year and month, return the number of days in that given month of the specified year.

Constraints:

  • 1583≤1583 \leq year ≤2100\leq 2100

  • 1≤1 \leq month ≤12\leq 12