6 kyu
Transpose of a Matrix
611 of 868debri
Description:
Transpose means is to interchange rows and columns of a two-dimensional array matrix.
[AT]ij=[A]ji
ie: Formally, the i th row, j th column element of AT is the j th row, i th column element of A:

Example :
[[1,2,3],[4,5,6]].transpose() //should return [[1,4],[2,5],[3,6]]
Write a prototype transpose to array in JS or add a .transpose method in Ruby or create a transpose function in Python so that any matrix of order ixj 2-D array returns transposed Matrix of jxi .
Linear Algebra
Matrix
Data Structures
Mathematics
Arrays
Fundamentals
Similar Kata:
Stats:
Created | Jul 3, 2015 |
Published | Jul 3, 2015 |
Warriors Trained | 1924 |
Total Skips | 268 |
Total Code Submissions | 7320 |
Total Times Completed | 868 |
JavaScript Completions | 242 |
Ruby Completions | 50 |
Python Completions | 611 |
Total Stars | 45 |
% of votes with a positive feedback rating | 85% of 229 |
Total "Very Satisfied" Votes | 176 |
Total "Somewhat Satisfied" Votes | 38 |
Total "Not Satisfied" Votes | 15 |
Total Rank Assessments | 48 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 8 kyu |