
线性结构——尺取法
Alex_McAvoy
想要成为渔夫的猎手
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
线性结构——尺取法
【概述】 尺取法,顾名思义,就是像尺子一样一段一段的取,简单来说,尺取法就是返回推进区间开头和结尾,求满足条件的最小区间的方法。 一般在以下两种情况使用尺取法: 给定一个有序递增数组,在数组中找到满足条件的区间 给定长度为 n 的数列以及整数 s,求出不小于 s 的连续子序列的长度的最小值,即最优连续子序列问题 【基本思路】 尺取法本质上也是一种模拟,常用于解决寻找区间和问题。 假设有...原创 2019-02-17 18:37:15 · 1181 阅读 · 2 评论 -
Bound Found(POJ-2566)
Problem Description Signals of most probably extra-terrestrial origin have been received and digitalized by The Aeronautic and Space Administration (that must be going through a defiant phase: "But ...原创 2019-02-17 19:22:16 · 593 阅读 · 0 评论 -
Finding Seats(HDU-1937)
Problem Description A group of K friends is going to see a movie. However, they are too late to get good tickets, so they are looking for a good way to sit all nearby. Since they are all science stu...原创 2019-02-17 20:56:53 · 507 阅读 · 0 评论 -
pairs(HDU-5178)
Problem Description John has nn points on the X axis, and their coordinates are (x[i],0),(i=0,1,2,…,n−1) . He wants to know how many pairs<a,b><a,b> that Input The first line contain...原创 2019-02-17 21:12:19 · 426 阅读 · 0 评论