摘要: 问题描述:给定一个长度为m的区间,再给出n条线段的起点和终点(注意这里是闭区间),求最少使用多少条线段可以将整个区间完全覆盖。 思路... 阅读全文
posted @ 2020-05-20 05:08 EvanMeetTheWorld 阅读(37) 评论(0) 推荐(0)
摘要: 问题描述:给定一个长度为m的区间,再给出n条线段的起点和终点(注意这里是闭区间),求最少使用多少条线段可以将整个区间完全覆盖。 思路... 阅读全文
posted @ 2020-05-20 05:08 EvanMeetTheWorld 阅读(65) 评论(0) 推荐(0)
摘要: find the first number index that is larger or equals to target. (就... 阅读全文
posted @ 2020-05-20 04:21 EvanMeetTheWorld 阅读(20) 评论(0) 推荐(0)
摘要: find the first number index that is larger or equals to target. (就... 阅读全文
posted @ 2020-05-20 04:21 EvanMeetTheWorld 阅读(17) 评论(0) 推荐(0)
摘要: classic monotonic stack problem, and this is a monotonic increasin... 阅读全文
posted @ 2020-05-20 03:22 EvanMeetTheWorld 阅读(9) 评论(0) 推荐(0)
摘要: classic monotonic stack problem, and this is a monotonic increasin... 阅读全文
posted @ 2020-05-20 03:22 EvanMeetTheWorld 阅读(12) 评论(0) 推荐(0)