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