摘要: 1.链表 1)单链表:邻接表 数组实现单链表: #include <iostream> #include <cstring> #include <algorithm> #include <vector> using namespace std; const int N = 100010; //e[N 阅读全文
posted @ 2021-11-17 21:12 乐池 阅读(34) 评论(0) 推荐(0)
摘要: 1.双指针 2.位运算 3.离散化 1)去除重复元素 vector<int>all; sort(all.begin() , all.end());//排序 all.erase(unique(all.begin() , all.end()) , all.end());//删除末尾的重复元素 2)代码 阅读全文
posted @ 2021-11-17 00:16 乐池 阅读(35) 评论(0) 推荐(0)