Python Easy Solution 99.81% Faster
\nclass Solution:\n    def flipAndInvertImage(self, image: List[List[int]]) -> List[List[int]]:\n        m,n=len(image),len(image[0])\n        for i in range(m)
```\nclass Solution:\n    def flipAndInvertImage(self, image: List[List[int]]) -> List[List[int]]:\n        m,n=len(image),len(image[0])\n        for i in range(m):\n            image[i]=image[i][-1::-1]\n        for i in range(m):\n            for j in range(n):\n                if image[i][j]==0:\n                    image[i][j]=1\n                else:\n                    image[i][j]=0\n        return image\n```\n\n**An upvote will be encouraging**
['Matrix', 'Python', 'Python3']