You are viewing a single comment's thread. Return to all comments →
And I'd say much better is simply
vector<int> reverseArray(vector<int> a) { return {a.rbegin(), a.rend()}; }
Arrays - DS
You are viewing a single comment's thread. Return to all comments →
And I'd say much better is simply