摘要:
二分查找 lower_bound(): 头文件: #include函数模板: 如 binary_search()函数功能: 函数lower_bound()在first和last中的前闭后开区间进行二分查找,返回大于或等于val的第一个元素位置。如果所有元素都小于val,则返回last的位置 举例如... 阅读全文
posted @ 2017-08-09 20:22
Veritas_des_Liberty
阅读(180)
评论(0)
推荐(0)
摘要:
点击打开链接O(n^2)算法dp[i] 以a[i]结尾的最长上升子序列1· 只包含a[i] (1)2· 在J#include #include using namespace std;const int maxn = 30010;int dp[maxn], a[maxn];int main(){... 阅读全文
posted @ 2017-08-09 20:18
Veritas_des_Liberty
阅读(204)
评论(0)
推荐(0)