摘要:
1 #include <iostream> 2 #include <vector> 3 #include <algorithm> 4 using namespace std; 5 6 // 自顶向下的方式 7 pair<int, vector<int>> maximumTotal(vector<ve 阅读全文
posted @ 2025-03-16 16:41
TP_003
阅读(9)
评论(0)
推荐(0)
摘要:
给定一个无序的整数数组,找到其中最长上升子序列的长度。子序列是由数组派生而来的序列,删除(或不删除)数组中的元素而不改变其余元素的顺序。 例如,[3,6,2,7] 是数组 [0,3,1,6,2,2,7] 的一个子序列。 1 #include <iostream> 2 #include <vector 阅读全文
posted @ 2025-03-16 16:39
TP_003
阅读(5)
评论(0)
推荐(0)

浙公网安备 33010602011771号