Please enter your email address or userHandle.
Given a vector of N positive integers. Your task is to print the vector elements in reverse order.
First line of input contains number of testcase, T. For each testcase, first line of input contains N, size of vector. Next line contains N elements seperated by space.
For each testcase, print the vector elements in reverse order.
1 <= T <= 100
1 <= N <= 106
1 <= V[i] <= 1012
Your task is to complete the function reverseIterator() which accepts it1 and it2 as two parameters and prints the vector elements in reverse order.
1 2 3 4 5
5 4 3 2 1
Testcase 1: Vector elements in reverse order are as 5, 4, 3, 2, 1.
We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?
Login to access your submissions.
Please choose 'ReadOnlyMode' if you needn't to 'Edit' the problem e.g. viewing OJ's solution, TestCase Files (TCFs), TimeLimit etc.