一. 题目 题目 示例 二. 方法一 解题思路 解题代码 def busyStudent(self, startTime: List[int], endTime: List[int], queryTime: int) -> int: count = 0 for i in range(len(startTime)): if startTime[i] <= queryTime <= endTime[i]: count += 1 return count 分析 时间复杂度: O(n) 空间复杂度: O(1)