当前位置:网站首页>Dynamic planning -- expansion topics
Dynamic planning -- expansion topics
2022-07-03 18:47:00 【Lin Shiliu should work hard】
1. Longest ascending subsequence
Interceptor missile issue
For a sequence , seek At least how many ascending sequences can cover
p[i] It means the first one i The maximum number of ascending sequences ,p[i]<p[i+1]
Each time a sequence larger than the maximum number is found , Then update the maximum number
If you can't find it , Just restart a new ascending sequence
for(int i=1;i<=n;i++)
{
int k=0;
while(k<cnt&&p[k]<a[i]) k++;
p[k]=a[i];
if(k>=cnt) cnt++;
}
cout<<res<<endl<<cnt;
Missile intercept plus
187. Missile defense system - AcWing Question bank
The interception sequence can be strictly increasing or decreasing , Ask how many can be covered
Put each number on the rise / Descending sequence
边栏推荐
- 简述服务量化分析体系
- application
- Hard disk monitoring and analysis tool: smartctl
- Caddy server agent
- Recommend a simple browser tab
- FBI warning: some people use AI to disguise themselves as others for remote interview
- English grammar_ Noun classification
- [combinatorics] exponential generating function (properties of exponential generating function | exponential generating function solving multiple set arrangement)
- Sepconv (separable revolution) code recurrence
- In addition to the prickles that pierce your skin, there are poems and distant places that originally haunt you in plain life
猜你喜欢
Chisel tutorial - 06 Phased summary: implement an FIR filter (chisel implements 4-bit FIR filter and parameterized FIR filter)
SQL: special update operation
CTO and programmer were both sentenced for losing control of the crawler
我眼中真正优秀的CTO长啥样
Torch learning notes (3) -- univariate linear regression model (self training)
2022-2028 global petroleum pipe joint industry research and trend analysis report
Grammaire anglaise Nom - Classification
NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
12、 Service management
2022-2028 global sepsis treatment drug industry research and trend analysis report
随机推荐
Torch learning notes (1) -- 19 common ways to create tensor
Mysql45 lecture learning notes (II)
Torch learning notes (4) -- torch's dynamic calculation diagram
JS_ Array_ sort
[combinatorics] dislocation problem (recursive formula | general term formula | derivation process)*
Why can deeplab v3+ be a God? (the explanation of the paper includes super detailed notes + Chinese English comparison + pictures)
[Yu Yue education] theoretical mechanics reference materials of Shanghai Jiaotong University
2022-2028 global petroleum pipe joint industry research and trend analysis report
2022-2028 global sepsis treatment drug industry research and trend analysis report
leetcode:11. 盛最多水的容器【双指针 + 贪心 + 去除最短板】
Zero length array
189. Rotation array
my. INI file not found
[combinatorics] generating function (positive integer splitting | basic model of positive integer splitting | disordered splitting with restrictions)
2022-2028 global lithium battery copper foil industry research and trend analysis report
简述服务量化分析体系
[Yu Yue education] world reference materials of Microbiology in Shanghai Jiaotong University
组策略中开机脚本与登录脚本所使用的用户身份
Coordinate layer conversion tool (video)
198. Looting - Dynamic Planning