Quick Overview

Count months beginning on Sunday across an inclusive Gregorian year range without a calendar library, using the 2000 weekday anchor and correct forward, backward, and leap-year arithmetic.

Count Months Whose First Day Is Sunday

Company: Walmart Labs

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

Overview: Count months beginning on Sunday across an inclusive Gregorian year range without a calendar library, using the 2000 weekday anchor and correct forward, backward, and leap-year arithmetic.

Loading…