Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(){
- int t;
- cin >> t;
- while (t--) {
- int n;
- cin >> n;
- int arr[n];
- for(int i = 0; i < n ; i++){
- cin >> arr[i];
- }
- cout << maxIndexDiff(arr, n);
- cout << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement