Calendar Problems
Everything on SkillVeris tagged Calendar Problems — collected across the glossary, study notes, blog, and cheat sheets.
6 resources across 1 library
Interview Questions(6)
How Do You Solve the Merge Intervals Problem?
The merge intervals problem asks you to collapse a set of possibly-overlapping intervals into the minimal set of non-overlapping intervals that cover the same…
How to Solve Calendar Problems
Calendar problems are solved by counting "odd days" — the remainder when total days between two dates are divided by 7 — since the day of the week repeats ever…
How to Find the Day of the Week for Any Date
The day of the week for any date is found using odd-day arithmetic: count the total number of “odd days” (days beyond complete weeks) from a known reference da…
How to Solve Calendar Leap Year Problems
A year is a leap year if it is divisible by 4, except century years (ending in 00), which must be divisible by 400 to be leap years — so 2024 is a leap year, 1…
How to Solve Calendar Odd Days Problems
Odd days are the number of days left over after removing complete weeks from a given period, and they are the key to finding the day of the week for any date,…
How to Solve Century Day Calendar Problems
Century day problems ask which day of the week a whole century (100 consecutive years) began or ended on, and they are solved by using the fixed odd-day values…