C++ check two vectors in revers direction code example
Example 1: c++ reverse part of vector
//Reverse vector partially (from index x to index y)
reverse(v.begin()+x, v.begin()+y+1);
Example 2: std::reverse
std::vector<int> v{1,2,3};
std::reverse(std::begin(v), std::end(v));