当前位置:网站首页>1450. 在既定时间做作业的学生人数
1450. 在既定时间做作业的学生人数
2020-11-09 08:25:00 【osc_6jhxf9ab】
题解
简单常规题目
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]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/4286372/blog/4708534
边栏推荐
- 为什么我们不使用GraphQL? - Wundergraph
- 架构中台图
- How does semaphore, a thread synchronization tool that uses an up counter, look like?
- 从实践谈 Ruby 语法上的几个设计不一致带来的问题。
- Get the first cover image of video through canvas
- [Python从零到壹] 五.网络爬虫之BeautifulSoup基础语法万字详解
- Save code
- LTM understanding and configuration notes
- 图节点分类与消息传递 - 知乎
- [Python from zero to one] 5. Detailed explanation of beautiful soup basic syntax of web crawler
猜你喜欢
A few lines of code can easily transfer traceid across systems, so you don't have to worry about losing the log!
GDI 及OPENGL的区别
How to get started with rabbitmq
上线1周,B.Protocal已有7000ETH资产!
Teacher Liang's small class
无法启动此程序,因为计算机中丢失 MSVCP120.dll。尝试安装该程序以解决此问题
Common feature pyramid network FPN and its variants
2020,Android开发者打破寒冬的利器是什么?
非阻塞的无界线程安全队列 —— ConcurrentLinkedQueue
卧槽,这年轻人不讲武德,应届生凭“小抄”干掉5年老鸟,成功拿到字节20Koffer
随机推荐
Five design patterns frequently used in development
Core knowledge of C + + 11-17 template (2) -- class template
Copy on write collection -- copyonwritearraylist
Initial installation of linx7.5
A few lines of code can easily transfer traceid across systems, so you don't have to worry about losing the log!
Introduction to nmon
六家公司CTO讲述曾经历的“宕机噩梦”
[Python从零到壹] 五.网络爬虫之BeautifulSoup基础语法万字详解
Natural language processing (NLP) roadmap - KDnuggets
Share API on the web
EasyNTS上云网关设备在雪亮工程项目中的实战应用
Do you know how the computer starts?
How to do thread dump analysis in Windows Environment
APP 莫名崩溃,开始以为是 Header 中 name 大小写的锅,最后发现原来是容器的错!
梁老师小课堂|谈谈模板方法模式
Teacher Liang's small class
Huawei HCIA notes
C++邻接矩阵
Tips in Android Development: requires permission android.permission write_ Settings solution
Why don't we use graphql? - Wundergraph