I have written code to reverse an array that has Time Complexity: O(n).
Is there a faster method?
My code:
 void reverseArray(int arr[], int start, int end){
        int temp;
        if(start >= end)
            return;
        temp = arr[start];
        arr[start] = arr[end];
        arr[end] = temp;
        reverseArray(arr, start+1, end-1);   
    }
 
     
     
     
     
    