| 2 | using namespace std; |
| 3 | int n; |
| 4 | void helper(int* s,int start,int end){ |
| 5 | if (start>=end){ |
| 6 | for (int i=0;i<n;i++){ |
| 7 | cout<<s[i]<<" "; |
| 8 | } |
| 9 | cout<<endl; |
| 10 | } |
| 11 | else{ |
| 12 | int temp = s[start]; |
| 13 | s[start] = s[end]; |
| 14 | s[end] = temp; |
| 15 | return helper(s, start + 1 , end-1); |
| 16 | } |
| 17 | } |
| 18 | int main() { |
| 19 | int t; |
| 20 | cin>>t; |
no outgoing calls
no test coverage detected