矩陣轉置

例如: transpose([[1,2,3], [3,2,1]]) => [[1,3], [2,2], [3,1]]
先印出原本a= [ [ 1, 2, 3 ], [ 6, 7, 8 ] ]
array= [ [ 1, 6 ], [ 2, 7 ], [ 3, 8 ] ]

這題我覺得好難,寫好久。

Show your support

Clapping shows how much you appreciated Emily Tou’s story.