当前位置:网站首页>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
边栏推荐
- Unity2018 to wechat games without pictures
- Torch learning notes (4) -- torch's dynamic calculation diagram
- Torch learning notes (2) -- 11 common operation modes of tensor
- What is SQL get connection
- Boost.Asio Library
- Torch learning notes (5) -- autograd
- User identity used by startup script and login script in group policy
- How many convolution methods does deep learning have? (including drawings)
- Pan for in-depth understanding of the attention mechanism in CV
- Understanding of database architecture
猜你喜欢

Torch learning notes (3) -- univariate linear regression model (self training)
![[Godot] add menu button](/img/44/ef1e6ac25bcbc8cc3ecc00c52f8ee2.jpg)
[Godot] add menu button

Analysis of the reasons why enterprises build their own software development teams to use software manpower outsourcing services at the same time

Why can deeplab v3+ be a God? (the explanation of the paper includes super detailed notes + Chinese English comparison + pictures)

What problems can cross-border e-commerce sellers solve with multi platform ERP management system

Gao Qing, Beijing University of Aeronautics and Astronautics: CIM is a natural quantum computing platform for graph data processing

2022-2028 global physiotherapy clinic industry research and trend analysis report

Mysql45 lecture learning notes (II)
![[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

Data analysis is popular on the Internet, and the full version of "Introduction to data science" is free to download
随机推荐
How many convolution methods does deep learning have? (including drawings)
Install apache+php+mysql+phpmyadmin xampp and its error resolution
Win 11 major updates, new features love love.
2022-2028 global solid phase extraction column industry research and trend analysis report
KINGS
198. Looting - Dynamic Planning
Administrative division code acquisition
12、 Service management
Multifunctional web file manager filestash
Gao Qing, Beijing University of Aeronautics and Astronautics: CIM is a natural quantum computing platform for graph data processing
Su embedded training - Day10
CTO and programmer were both sentenced for losing control of the crawler
[Godot] add menu button
Okaleido, a multimedia NFT aggregation platform, is about to go online, and a new NFT era may come
Kratos微服务框架下实现CQRS架构模式
22.2.14 -- station B login with code -for circular list form - 'no attribute' - 'needs to be in path selenium screenshot deviation -crop clipping error -bytesio(), etc
VLAN experiment
[combinatorics] dislocation problem (recursive formula | general term formula | derivation process)*
Which do MySQL and Oracle learn?
FBI warning: some people use AI to disguise themselves as others for remote interview