Menu

[solved] – Question 76524

Write a function reverse, that takes in a vector<T> and reverses the vector, i.e. modifies the input vector.

#include <vector>

using namespace std;

template <typename T>

void reverse(vector<T> v) {

//code..

}

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *