Course · Section 11: Working With Arrays · Lecture 149: Simple Array Methods
Implement `reverseTwoPointer(arr)` returning a reversed array by swapping with two pointers (work on a copy).
+ 1 hidden test run on Submit.
Swapping symmetric pairs reverses the array in O(n) time, O(1) extra space.
Run your code to see results.