Search
⌘K
Get Premium
Leetcode 1118. Number of Days in a Month
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).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.