Available question text
Given records of businesses with start and end dates, compute how many businesses are active at specified times or over given ranges. The core challenge is counting overlapping intervals efficiently (use sorting + sweep-line, difference arrays, or prefix sums to handle large inputs and many queries).
Related questions
Continue with questions that share topics or the same question type.
- Active Users
Coding
- Aggregate Recent Message Events And Active Chats
Coding · Data Structure Design
- Extend a Simple Bank System to Track the Most Active Accounts
Coding
- Find Active Users
Coding
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 1126. Active Businesses
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source