当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- 20201108 programming exercise exercise 3
- python生日贺卡制作以及细节问题的解决最后把python项目发布为exe可执行程序过程
- 你有没有想过为什么交易和退款要拆开不同的表
- How to reduce the resource consumption of istio agent through sidecar custom resource
- The difference between GDI and OpenGL
- object
- Service grid is still difficult - CNCF
- Introduction to nmon
- STS安装
- 23 pictures, take you to the recommended system
猜你喜欢
Introduction to nmon
简单介绍c#通过代码开启或关闭防火墙示例
平台商业化能力的另一种表现形式SAAS
Graph node classification and message passing
梁老师小课堂|谈谈模板方法模式
Apache Iceberg 中三种操作表的方式
range_sensor_layer
Linked blocking queue based on linked list
android开发中提示:requires permission android.permission write_settings解决方法
1. What does the operating system do?
随机推荐
重新开始学习离散数学
2 normal mode
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!
FC 游戏机的工作原理是怎样的?
亚马逊的无服务器总线EventBridge支持事件溯源 - AWS
Linked blocking queue based on linked list
Review of API knowledge
服务网格仍然很难 - cncf
Three ways to operate tables in Apache iceberg
B. protocal has 7000eth assets in one week!
Concurrent linked queue: a non blocking unbounded thread safe queue
Android emulator error: x86 emulation currently requires hardware acceleration的解决方案
一堆代码忘了缩进?快捷方式教你无忧无虑!
Graph node classification and message passing
Chapter 5 programming
A solution to the problem that color picker (palette) cannot use shortcut keys in sublime Text3 plug-in
Commodity management system -- the search function of SPU
23张图,带你入门推荐系统
After Android solves the setrequested orientation, the rotation of the mobile phone screen does not trigger the onconfigurationchanged method
商品管理系统——SPU检索功能