摘要: 这个方法是nlogn的而动态规划是n方的 #include<bits/stdc++.h> using namespace std; vector<int> nums; void help(vector<int>& arr, int n){ //找到一个位置的数前面比n小自己比n大或者相等。 int 阅读全文
posted @ 2022-10-30 19:42 天然气之子 阅读(28) 评论(0) 推荐(0) 编辑