reverse function for vector in cpp code example
Example: c++ reverse part of vector
//Reverse vector partially (from index x to index y)
reverse(v.begin()+x, v.begin()+y+1);
//Reverse vector partially (from index x to index y)
reverse(v.begin()+x, v.begin()+y+1);