Problem of the day
Current streak:
0 days
Longest streak:
5 days
Less
More
vector<int>reverseArray(int n, vector<int> &nums) { auto low = nums.begin(); auto high = nums.end()-1; while(low <= high){ swap(*low,*high); low++; high--; } return nums; }