当前位置:网站首页>1450. Number of students doing homework at a given time
1450. Number of students doing homework at a given time
2020-11-09 08:25:00 【osc_6jhxf9ab】
Answer key
Simple routine questions
class Solution:
def busyStudent(self, startTime: List[int], endTime: List[int], queryTime: int) -> int:
num = 0
for i in range(len(endTime)):
if endTime[i]>= queryTime and startTime[i]<= queryTime:
num+=1
return num
版权声明
本文为[osc_6jhxf9ab]所创,转载请带上原文链接,感谢
边栏推荐
- [Python from zero to one] 5. Detailed explanation of beautiful soup basic syntax of web crawler
- 为什么我们不使用GraphQL? - Wundergraph
- Salesforce connect & external object
- Windows环境下如何进行线程Dump分析
- 一堆代码忘了缩进?快捷方式教你无忧无虑!
- Commodity management system -- integrate warehouse services and obtain warehouse list
- centos7下安装iperf时出现 make: *** No targets specified and no makefile found. Stop.的解决方案
- leetcode之反转字符串中的元音字母
- 常见特征金字塔网络FPN及变体
- Sublime text3 插件ColorPicker(调色板)不能使用快捷键的解决方法
猜你喜欢
2 normal mode
2. Introduction to computer hardware
平台商业化能力的另一种表现形式SAAS
RabbitMQ脑裂问题解决方案调查
Commodity management system -- the search function of SPU
APP 莫名崩溃,开始以为是 Header 中 name 大小写的锅,最后发现原来是容器的错!
Linked blocking queue based on linked list
OSChina 周一乱弹 —— 程序媛的青春
C / C + + Programming Notes: pointer! Understand pointer from memory, let you understand pointer completely
App crashed inexplicably. At first, it thought it was the case of the name in the header. Finally, it was found that it was the fault of the container!
随机推荐
App crashed inexplicably. At first, it thought it was the case of the name in the header. Finally, it was found that it was the fault of the container!
23张图,带你入门推荐系统
3.你知道计算机是如何启动的吗?
如何通过Sidecar自定义资源减少Istio代理资源消耗
Salesforce connect & external object
Android 解决setRequestedOrientation之后手机屏幕的旋转不触发onConfigurationChanged方法
Linked blocking queue based on linked list
ubuntu 上使用微信的新方案——手机投屏
B. protocal has 7000eth assets in one week!
Introduction to nmon
20201108编程练习——练习3
Common feature pyramid network FPN and its variants
非阻塞的无界线程安全队列 —— ConcurrentLinkedQueue
[QT] subclass qthread to realize multithreading
Leetcode-15: sum of three numbers
Android emulator error: x86 emulation currently requires hardware acceleration的解决方案
Several rolling captions based on LabVIEW
Sublime text3 插件ColorPicker(调色板)不能使用快捷键的解决方法
First development of STC to stm32
How to do thread dump analysis in Windows Environment