Level 1-beginner. Given an m x n matrix, return its transpose. The transpose of a matrix flips it over its main diagonal, switching rows and columns.
transpose([[1,2,3],[4,5,6]]) => [[1,4],[2,5],[3,6]]
transpose([[1]]) => [[1]]
Waiting for you...
CodeBot will comment on your code as you write...
Click "Run Code" or press Ctrl+Enter to test your solution