当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Do you know how the computer starts?
- 对象
- 14.Kubenetes简介
- 图节点分类与消息传递 - 知乎
- Commodity management system -- the search function of SPU
- 2.计算机硬件简介
- Copy on write collection -- copyonwritearraylist
- Have you ever thought about why the transaction and refund have to be split into different tables
- First development of STC to stm32
- 深度优先搜索和广度优先搜索
猜你喜欢
C + + adjacency matrix
Talk about my understanding of FAAS with Alibaba cloud FC
Tips in Android Development: requires permission android.permission write_ Settings solution
Do you know how the computer starts?
B. protocal has 7000eth assets in one week!
Adding OpenGL form to MFC dialog
STS安装
Programmers should know the URI, a comprehensive understanding of the article
平台商业化能力的另一种表现形式SAAS
Graph node classification and message passing
随机推荐
GDI 及OPENGL的区别
23 pictures, take you to the recommended system
File queue in Bifrost (1)
作业2020.11.7-8
为什么我们不使用GraphQL? - Wundergraph
Why choose f for the back end of dark website? - darklang
Operation 2020.11.7-8
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!
The vowels in the inverted string of leetcode
Several common playing methods of sub database and sub table and how to solve the problem of cross database query
This program cannot be started because msvcp120.dll is missing from your computer. Try to install the program to fix the problem
Programmers should know the URI, a comprehensive understanding of the article
Do you know how the computer starts?
Unemployment log, November 5
Salesforce connect & external object
Initial installation of linx7.5
Concurrent linked queue: a non blocking unbounded thread safe queue
架构中台图
链表
A few lines of code can easily transfer traceid across systems, so you don't have to worry about losing the log!