Available question text
Given two inclusive date ranges in the same non-leap year (dates as "MM-DD") for Alice and Bob, return the number of days they are in the city together. A common approach is to convert dates to day-of-year and take the overlap length between max(arrival dates) and min(leave dates) (or 0 if no overlap).
Related questions
Continue with questions that share topics or the same question type.
- Count Days Without Meetings
Coding
- 1. Count number of islands in matrix (Leetcode challenge)
Coding
- Capacity To Ship Packages Within D Days
Coding · Array · Binary Search
- Cheapest Daily Shirt Colors With No Color Repeated on Consecutive Days
Coding · Dynamic Programming
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 2409. Count Days Spent Together
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source