vector reverse from a index in c++ 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: reverse in vector c++
reverse(start_index, last_index);
//Reverse vector partially (from index x to index y)
reverse(v.begin()+x, v.begin()+y+1);
reverse(start_index, last_index);