Available question text
Count how many intervals [startTime[i], endTime[i]] contain queryTime (inclusive). This is a straightforward counting problem over at most 100 intervals, typically solved by a single pass checking startTime[i] <= queryTime <= endTime[i].
Related questions
Continue with questions that share topics or the same question type.
- Design an algorithm to get the load on the server in past 5 mins given the time stamps of requests.
Coding
- Determine if a Cell Is Reachable at a Given Time
Coding
- Find Three Consecutive Integers That Sum to a Given Number
Coding
- Given an array nums and a sliding window of size k moving from the very left to the very right, return the maximum value in the window for each position. Solve in O(n) time using a deque.
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 1450. Number of Students Doing Homework at a Given Time
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source