reverse from a given index in vector c++ code example
Example 1: how to reverse a vector
//vector<int> A;
reverse(A.begin(),A.end());
Example 2: reverse a vector
vector<int> a = {1,2,3,4,5,6};
reverse(a.begin(), a.end());
//vector<int> A;
reverse(A.begin(),A.end());
vector<int> a = {1,2,3,4,5,6};
reverse(a.begin(), a.end());