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

Function reverse_row

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

Source from the content-addressed store, hash-verified

67
68
69def reverse_row(matrix: list[list[int]]) -> list[list[int]]:
70 matrix[:] = matrix[::-1]
71 return matrix
72
73
74def reverse_column(matrix: list[list[int]]) -> list[list[int]]:

Callers 2

rotate_90Function · 0.85
rotate_180Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected