刷题常用函数

algorithm

accumlate :

adjacent_find

binary_search

copy

string s1="hello hengliy";
string s2="welcome";
copy(s1.begin(),s1.end()-1,s2.begin()+6);
cout<<s2; //welcomh

reverse

reverse(array.begin(),array.end());