MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / reverse_column

Function reverse_column

matrix/rotate_matrix.py:74–76  ·  view source on GitHub ↗
(matrix: list[list[int]])

Source from the content-addressed store, hash-verified

72
73
74def reverse_column(matrix: list[list[int]]) -> list[list[int]]:
75 matrix[:] = [x[::-1] for x in matrix]
76 return matrix
77
78
79def print_matrix(matrix: list[list[int]]) -> None:

Callers 2

rotate_180Function · 0.85
rotate_270Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected