fast reverse a vector cpp code example
Example 1: how to reverse a vector
//vector<int> A;
reverse(A.begin(),A.end());
Example 2: std::reverse
std::vector<int> v{1,2,3};
std::reverse(std::begin(v), std::end(v));
Example 3: reverse in vector c++
reverse(start_index, last_index);