[solved] – Question 76705
Write a function reverse, that takes in a vector<T> and returns a new vector<T> that has the contents reversed.
Try practising with and without using iterators.
Input: reverse({1, 2, 3, 4, 5})output:{5, 4, 3, 2}
Input: reverse({Lorem, ipsum, dolor, sit, amet})output: {amet, sit, dolor, ipsum}
Expert Answer
OR

