Return the transpose of a rectangular matrix, swapping its rows and columns.
Implement solve(A).
Returns. Return a NumPy array of shape (n,m) for an m×n input.
Example 1
Input:
solve([[1, 2, 3], [4, 5, 6]])
Output:
[[1, 4], [2, 5], [3, 6]]
Example 2
Input:
solve([[7]])
Output:
[[7]]
No results yet
Run your code to check it against the examples, or submit to run every test.