当前位置:网站首页>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
边栏推荐
- “google is not defined” when using Google Maps V3 in Firefox remotely
- [combinatorics] exponential generating function (example 2 of solving multiple set permutation with exponential generating function)
- 2022-2028 global physiotherapy clinic industry research and trend analysis report
- cipher
- 2022-2028 global aircraft head up display (HUD) industry research and trend analysis report
- What does foo mean in programming?
- Xception for deeplab v3+ (including super detailed code comments and original drawing of the paper)
- Opencv learning notes (continuously updated)
- Transformer T5 model read slowly
- FBI 警告:有人利用 AI 换脸冒充他人身份进行远程面试
猜你喜欢
![[leetcode weekly race] game 300 - 6110 Number of incremental paths in the grid graph - difficult](/img/8d/0e515af6c17971ddf461e3f3b87c30.png)
[leetcode weekly race] game 300 - 6110 Number of incremental paths in the grid graph - difficult

FBI 警告:有人利用 AI 换脸冒充他人身份进行远程面试

How does GCN use large convolution instead of small convolution? (the explanation of the paper includes super detailed notes + Chinese English comparison + pictures)

Ping problem between virtual machine and development board
![leetcode:556. Next larger element III [simulation + change as little as possible]](/img/a0/12e5ee5d01d666acb4b75ada2e6fec.png)
leetcode:556. Next larger element III [simulation + change as little as possible]

Administrative division code acquisition
![[Godot] add menu button](/img/44/ef1e6ac25bcbc8cc3ecc00c52f8ee2.jpg)
[Godot] add menu button

Sensor debugging process
![235. Ancêtre public le plus proche de l'arbre de recherche binaire [modèle LCA + même chemin de recherche]](/img/f5/f2d244e7f19e9ddeebf070a1d06dce.png)
235. Ancêtre public le plus proche de l'arbre de recherche binaire [modèle LCA + même chemin de recherche]

A green plug-in that allows you to stay focused, live and work hard
随机推荐
Caddy server agent
TypeScript 官网教程
Recommend a simple browser tab
A green plug-in that allows you to stay focused, live and work hard
2022-2028 global physiotherapy clinic industry research and trend analysis report
Gao Qing, Beijing University of Aeronautics and Astronautics: CIM is a natural quantum computing platform for graph data processing
Su embedded training - Day10
After nohup NPM start &, close the shell window directly, and the process closes accordingly
English grammar_ Noun classification
Sustainable service business models
2022-2028 global scar care product industry research and trend analysis report
Torch learning notes (4) -- torch's dynamic calculation diagram
FBI 警告:有人利用 AI 换脸冒充他人身份进行远程面试
Suffix derivation based on query object fields
简述服务量化分析体系
Torch learning notes (1) -- 19 common ways to create tensor
ES7 - Optimization of promise
Reappearance of ASPP (atlas spatial pyramid pooling) code
flask 生成swagger文档
Naoqi robot summary 27