vector reverse in 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));
//vector<int> A;
reverse(A.begin(),A.end());
std::vector<int> v{1,2,3};
std::reverse(std::begin(v), std::end(v));