Search
⌘K

Leetcode 1450. Number of Students Doing Homework at a Given Time

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].


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.