当前位置:网站首页>2022.7.5-----leetcode. seven hundred and twenty-nine
2022.7.5-----leetcode. seven hundred and twenty-nine
2022-07-05 23:57:00 【Lu 727】
List<int[]> booked;// Scheduled interval
public MyCalendar() {
booked = new ArrayList<int[]>();
}
public boolean book(int start, int end) {
for (int[] arr : booked) {
int l = arr[0], r = arr[1];
// For each interval , Determine whether there will be overlap
if ( start < r&&end> l ) {
return false;
}
}
booked.add(new int[]{start, end});
return true;
}边栏推荐
- 什么叫做信息安全?包含哪些内容?与网络安全有什么区别?
- JVM details
- Configuring OSPF GR features for Huawei devices
- 跟着CTF-wiki学pwn——ret2libc1
- openssl-1.0.2k版本升级openssl-1.1.1p
- 【NOI模拟赛】Anaid 的树(莫比乌斯反演,指数型生成函数,埃氏筛,虚树)
- Learn PWN from CTF wiki - ret2libc1
- "14th five year plan": emphasis on the promotion of electronic contracts, electronic signatures and other applications
- GFS分布式文件系統
- Biased sample variance, unbiased sample variance
猜你喜欢
随机推荐
XML configuration file (DTD detailed explanation)
第16章 OAuth2AuthorizationRequestRedirectWebFilter源码解析
[online chat] the original wechat applet can also reply to Facebook homepage messages!
Bao Yan notes II software engineering and calculation volume II (Chapter 13-16)
mysql-全局锁和表锁
云呐|公司固定资产管理系统有哪些?
零犀科技携手集智俱乐部:“因果派”论坛成功举办,“因果革命”带来下一代可信AI
Use mapper: --- tkmapper
云呐|固定资产管理系统主要操作流程有哪些
How to get all the values stored in localstorage
[binary search tree] add, delete, modify and query function code implementation
Add noise randomly to open3d point cloud
选择致敬持续奋斗背后的精神——对话威尔价值观【第四期】
Bao Yan notebook IV software engineering and calculation volume II (Chapter 8-12)
What is a humble but profitable sideline?
开源crm客户关系统管理系统源码,免费分享
转:未来,这样的组织才能扛住风险
PV静态创建和动态创建
[gym 102832h] [template] combination lock (bipartite game)
There is no network after configuring the agent by capturing packets with Fiddler mobile phones








