✅Simple Transpose (Contest)
Simple Transpose easy Time Limit: 2 sec Memory Limit: 128000 kB
Problem Statement :
You are given a NxN matrix. You need to find the transpose of the matrix. The matrix is of form: a b c ... d e f ... g h i ... ........... There are N elements in each row.InputThe first line of the input contains an integer N denoting the size of the square matrix. The next N lines contain N single-spaced integers. Constraints 1 <= N <= 100 1 <=Ai <= 100000OutputOutput the transpose of the matrix in similar format as that of the input.ExampleSample Input 2 1 3 2 2 Sample Output 1 2 3 2 Sample Input: 1 2 3 4 Sample Output: 1 3 2 4
link:https://my.newtonschool.co/playground/code/tbm42f392vrg/
Last updated