当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- BIOS of operating system
- 通过canvas获取视频第一帧封面图
- 2 normal mode
- C++邻接矩阵
- Introduction to nmon
- For the first time open CSDN, this article is for the past self and what is happening to you
- File queue in Bifrost (1)
- 当我们聊数据质量的时候,我们在聊些什么?
- Talk about my understanding of FAAS with Alibaba cloud FC
- 非阻塞的无界线程安全队列 —— ConcurrentLinkedQueue
猜你喜欢

RabbitMQ脑裂问题解决方案调查

Depth first search and breadth first search

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!

Copy on write collection -- copyonwritearraylist

Ten year itch of programmer

20201108编程练习——练习3

OSChina 周一乱弹 —— 程序媛的青春

Windows环境下如何进行线程Dump分析

上线1周,B.Protocal已有7000ETH资产!

Several rolling captions based on LabVIEW
随机推荐
第五章编程
你有没有想过为什么交易和退款要拆开不同的表
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!
非阻塞的无界线程安全队列 —— ConcurrentLinkedQueue
APP 莫名崩溃,开始以为是 Header 中 name 大小写的锅,最后发现原来是容器的错!
When iperf is installed under centos7, the solution of make: * no targets specified and no makefile found. Stop
LTM understanding and configuration notes
Depth first search and breadth first search
android开发中提示:requires permission android.permission write_settings解决方法
The vowels in the inverted string of leetcode
Several rolling captions based on LabVIEW
[Python from zero to one] 5. Detailed explanation of beautiful soup basic syntax of web crawler
How does FC game console work?
OpenGL ES 框架详细解析(八) —— OpenGL ES 设计指南
老大问我:“建表为啥还设置个自增 id ?用流水号当主键不正好么?”
Introduction to nmon
First development of STC to stm32
程序员的十年之痒
如何通过Sidecar自定义资源减少Istio代理资源消耗
Talk about my understanding of FAAS with Alibaba cloud FC