Available question text
Given a year and month, return how many days are in that month, correctly handling February via leap-year rules (year divisible by 4 but not by 100 unless also divisible by 400).
Related questions
Continue with questions that share topics or the same question type.
- Customers with Maximum Number of Transactions on Consecutive Days
Coding
- Minimum Number of Days to Disconnect Island
Coding
- Minimum Number of Days to Eat N Oranges
Coding
- Minimum Number of Days to Make m Bouquets
Coding · Array · Binary Search
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1118. Number of Days in a Month
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source