Menu

[solved] – Question 76525

Write a function reverse, that takes in a vector<T> and returns a new vector<T> that has the contents reversed.

Try practicing with and without using iterators.

#include <vector>

using namespace std;

vector<T> reverse(vector<T> v) {
//code
}

Expert Answer


OR


Leave a Reply

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