Back to course home
0% completed
Vote For New Content
1 Line solution for the problem
Naveen Gupta
Feb 17, 2025
class Solution: def flipAndInvertImage(self, matrix): for row in range(len(matrix)): matrix[row] = [abs(i-1) for i in matrix[row][::-1]] return matrix
0
0
Comments
Comments
On this page