| 1 | #include<bits/stdc++.h> |
| 2 | using namespace std; |
| 3 | int reverse(int arr[], int n){ |
| 4 | int s=0; |
| 5 | int e= n-1; |
| 6 | while(s<=e){ |
| 7 | swap(arr[s],arr[e]); |
| 8 | s+=1; |
| 9 | e-=1; |
| 10 | } |
| 11 | return 0; |
| 12 | } |
| 13 | void initial(){ |
| 14 | #ifndef ONLINE_JUDGE |
| 15 | freopen("input.txt", "r", stdin); |