你能解释一下 STL C++ 向量中的 find 函数是如何工作的,它的时间复杂度是多少?
vector<int> v; if(find(v.begin(),v.end(),element)==v.end()) do this; else do this
time stl vector c++11 c++14
c++11 ×1
c++14 ×1
stl ×1
time ×1
vector ×1