Duplicate Array
Duplicate Array easy asked in interviews by 1 company Time Limit: 2 sec Memory Limit: 128000 kB
Last updated
Duplicate Array easy asked in interviews by 1 company Time Limit: 2 sec Memory Limit: 128000 kB
Last updated
Problem Statement:
Write a Program to duplicate an array N number of times. Input The first line of the input contains two space separated integers N and M - The size of an array and Number of times to be repeated. The second line contains N space separated integers A1, A2,. , An.
Constraints 1 ≤ N,M ≤ 100 1 ≤ A[i] ≤ 1000 Output Print the required output. Example Sample Input 3 2 1 2 3
Sample Output 1 2 3 1 2 3
link: