Cody

Problem 42298. Repeat The Components of Matrix

Created by Vishal in Community

Repeat The components of a matrix so that the size of the output matrix is double to input matrix and components are repeated next to it.

Let Input =

 [1 2 3 4 5 6 7]

then Output =

 [1 1 2 2 3 3 4 4 5 5 6 6 7 7]

Solution Stats

75.81% Correct | 24.19% Incorrect
Last solution submitted on Apr 10, 2019