Front to Back
Basic Accuracy: 70.41% Submissions: 7021 Points: 1

Iterators are used to iterate over vectors, maps, sets etc. Here we will learn to iterate over a vector from begin to end.
You are given a vector V of size n. You need print its elements.

Input Format:
The first line of input contains T denoting the number of testcases. T testcases follow. Each testcase contains two lines of input. The first line contains n denoting the size of the array. The second line contains the elements of the vector.

Output Format:
For each testcase, in a new line, print the required output.

Your Task:
Since this is a function problem, you don't need to take any input. Just complete the function iter() that takes two iterators as parameters.

1 <= T <= 100
1 <= n <= 107
0 <= Vi <= 107


1 2 3 4 5
1 2 3 4 5


to report an issue on this page.


We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?


All Submissions

My Submissions:

Login to access your submissions.

Front to Back

Output Window