- Map与unordered_map
- Map用法整理
- unordered_map用法整理
- leetcode两数之和
//引入头文件出错,可尝试这个 #include#include using namespace std::tr1; using namespace std; int main() { unordered_map heap; heap[0]=0; heap[1]=1; heap[2]=2; //删除key 成功1 cout< class Solution { public: vectortwoSum(vector & nums, int target) { unordered_map heap; for(int i=0;i



