当前位置:网站首页>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
边栏推荐
猜你喜欢
How to reduce the resource consumption of istio agent through sidecar custom resource
Copy on write collection -- copyonwritearraylist
理论与实践相结合彻底理解CORS
The vowels in the inverted string of leetcode
LeetCode-15:三数之和
Concurrent linked queue: a non blocking unbounded thread safe queue
Share API on the web
平台商业化能力的另一种表现形式SAAS
A few lines of code can easily transfer traceid across systems, so you don't have to worry about losing the log!
卧槽,这年轻人不讲武德,应届生凭“小抄”干掉5年老鸟,成功拿到字节20Koffer
随机推荐
Detailed analysis of OpenGL es framework (8) -- OpenGL es Design Guide
分库分表的几种常见玩法及如何解决跨库查询等问题
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!
如何通过Sidecar自定义资源减少Istio代理资源消耗
20201108 programming exercise exercise 3
In 2020, what are the best tools for Android developers to break the cold winter?
Oschina plays disorderly on Monday
重新开始学习离散数学
Several common playing methods of sub database and sub table and how to solve the problem of cross database query
Have you ever thought about why the transaction and refund have to be split into different tables
程序员都应该知道的URI,一文帮你全面了解
leetcode之反转字符串中的元音字母
使用递增计数器的线程同步工具 —— 信号量,它的原理是什么样子的?
Copy on write collection -- copyonwritearraylist
梁老师小课堂|谈谈模板方法模式
服务网格仍然很难 - cncf
Why choose f for the back end of dark website? - darklang
For the first time open CSDN, this article is for the past self and what is happening to you
Concurrent linked queue: a non blocking unbounded thread safe queue
LTM understanding and configuration notes