reverese element in vector code example Example: how to reverse a vector //vector<int> A; reverse(A.begin(),A.end());