I want to split a vector:
vector<int> v = {1,2,3,4,5};
into two halves and read them out in reverse order:
3, 2, 4, 1, 5
What is a C++ efficient way to do this?
4
I want to split a vector:
vector<int> v = {1,2,3,4,5};
into two halves and read them out in reverse order:
3, 2, 4, 1, 5
What is a C++ efficient way to do this?
4