Search
⌘K

Leetcode 2298. Tasks Count in the Weekend

Given a schedule of tasks over a date range or with a recurrence pattern, count how many of those tasks fall on weekend days (Saturday/Sunday). The key challenge is efficient date arithmetic and modular counting of weekdays across months/years (handling varying month lengths and leap years) rather than iterating day-by-day.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Your account is free and you can post anonymously if you choose.