09 2020 档案
摘要:字符串:类似vector,有空闲的空间 capacity和len,当长度小于1M时,每次扩容加倍,大于1M,每次扩容1M,最大512M hash: 相当于c++ unordered_map,当需要rehash时,不是一次性,而是循序渐进式将旧hash的内容一点点迁移到新的hash结构中(定时任务,以
阅读全文
摘要:#include <vector> #include <algorithm> #include <iostream> #include <bitset> using namespace std; void print() {} template <typename T, typename... Ty
阅读全文