待解决:优先队列和双端队列
1. pair make_pair first second
2. unorder_map unorder_set
3. INT_MAX INT_MIN
4. stoi atoi 字符串转数字
5. unordered_set 和unorder_map不能存pair类型
6. if语句如果写一行,那么下面的所有语句只能只有一行,如果多行得用大括号,这样还不如写成多行
7. 定义两个类的时候,如果A类要创建B类对象,则B类的实现要放在A前面
8. 并查集的题不需要设标志位
9. C++ string substr(pos, count) pos为起始坐标,count为子串的长度
10. C++ string replace(pos, count, new_str) new_str为新的子串
11. 可以这么初始化 keyboard[2] = vector<string> {"a", "b", "c"};
12. vector<int> a(10, 1) 初始化10个1
13. map初始化可以这样初始化 map<char,string> mp={ {'2',"abc"},{'3',"def"},{'4',"ghi"},{'5',"jkl"}, {'6',"mno"},{'7',"pqrs"},{'8',"tuv"},{'9',"wxyz"}};
14. string 判断是否为空可以用empty
15.