Unordered_set questions
问题 Could anyone explain how an unordered set works? I am also not sure how a set works. My main question is what is the efficiency of its find function. For example, what is the total big O run time of this? vector<int> theFirst; vector<int> theSecond; vector<int> theMatch; theFirst.push_back( -2147483648 ); theFirst.push_back(2); theFirst.push_back(44); theSecond.push_back(2); theSecond.push_back( -2147483648 ); theSecond.push_back( 33 ); //1) Place the contents into a unordered set that is O(m