reverse array in a range c++ stl code example
Example 1: how to reverse a vector
//vector<int> A;
reverse(A.begin(),A.end());
Example 2: reverse in vector c++
reverse(start_index, last_index);
//vector<int> A;
reverse(A.begin(),A.end());
reverse(start_index, last_index);