Timer is Running

Front to Back
Submissions: 4704   Accuracy:


  Difficulty: Basic   Marks: 1
Associated Course(s):   Fork CPP   C++ STL

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


** For More Input/Output Examples Use 'Expected Output' option **

Author: Soul_xhacker

If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.

Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.

to report an issue on this page.