当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Sublime text3 插件ColorPicker(调色板)不能使用快捷键的解决方法
- 基于链表的有界阻塞队列 —— LinkedBlockingQueue
- centos7下安装iperf时出现 make: *** No targets specified and no makefile found. Stop.的解决方案
- First development of STC to stm32
- Introduction to nmon
- 23张图,带你入门推荐系统
- 商品管理系统——整合仓库服务以及获取仓库列表
- 平台商业化能力的另一种表现形式SAAS
- The file size uploaded by WordPress import exceeds php.ini Upload defined in_ max_ Filesize value -- & gt; solution.
- Start learning discrete mathematics again
猜你喜欢

A few lines of code can easily transfer traceid across systems, so you don't have to worry about losing the log!

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

Operation 2020.11.7-8

20201108编程练习——练习3

Windows环境下如何进行线程Dump分析
![[QT] subclass qthread to realize multithreading](/img/95/085ef9ecf3478a8c6bad4f75716dd8.jpg)
[QT] subclass qthread to realize multithreading

File queue in Bifrost (1)

Linked blocking queue based on linked list

Concurrent linked queue: a non blocking unbounded thread safe queue

EasyNTS上云网关设备在雪亮工程项目中的实战应用
随机推荐
Oschina plays disorderly on Monday
Get the first cover image of video through canvas
leetcode之反转字符串中的元音字母
第五章编程
首次开通csdn,这篇文章送给过去的自己和正在发生的你
Depth first search and breadth first search
Tips in Android Development: requires permission android.permission write_ Settings solution
Salesforce connect & external object
Have you ever thought about why the transaction and refund have to be split into different tables
First development of STC to stm32
Share API on the web
Huawei HCIA notes
How does FC game console work?
File queue in Bifrost (1)
A few lines of code can easily transfer traceid across systems, so you don't have to worry about losing the log!
A solution to the problem that color picker (palette) cannot use shortcut keys in sublime Text3 plug-in
LTM理解及配置笔记记录
C / C + + Programming Notes: pointer! Understand pointer from memory, let you understand pointer completely
23 pictures, take you to the recommended system
[Python from zero to one] 5. Detailed explanation of beautiful soup basic syntax of web crawler