We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb68c7e commit 4a0da3cCopy full SHA for 4a0da3c
1 file changed
matrix/transpose_of_matrix.py
@@ -18,7 +18,7 @@
18
"""
19
20
21
-def transpose(matrix):
+def transpose(matrix: list[list[int]]) ->list[list[int]]:
22
# create a null matrix of same dimension of given matrix
23
trans = [[0] * len(matrix) for _ in range(len(matrix[0]))]
24
for i in range(len(matrix)):
0 commit comments