当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
猜你喜欢
程序员都应该知道的URI,一文帮你全面了解
23 pictures, take you to the recommended system
作业2020.11.7-8
range_sensor_layer
分库分表的几种常见玩法及如何解决跨库查询等问题
使用递增计数器的线程同步工具 —— 信号量,它的原理是什么样子的?
20201108 programming exercise exercise 3
Ten year itch of programmer
Tips in Android Development: requires permission android.permission write_ Settings solution
Chapter 5 programming
随机推荐
Commodity management system -- integrate warehouse services and obtain warehouse list
14. Introduction to kubenetes
Get the first cover image of video through canvas
Sublime text3 插件ColorPicker(调色板)不能使用快捷键的解决方法
Initial installation of linx7.5
Huawei HCIA notes
Introduction to nmon
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!
C++之异常捕获和处理
结合阿里云 FC 谈谈我对 FaaS 的理解
Tips in Android Development: requires permission android.permission write_ Settings solution
Have you ever thought about why the transaction and refund have to be split into different tables
华为HCIA笔记
The difference between GDI and OpenGL
Windows环境下如何进行线程Dump分析
python生日贺卡制作以及细节问题的解决最后把python项目发布为exe可执行程序过程
2020,Android开发者打破寒冬的利器是什么?
Oschina plays disorderly on Monday
老大问我:“建表为啥还设置个自增 id ?用流水号当主键不正好么?”
23张图,带你入门推荐系统