Very simple solution using python
\nclass Solution:\n    def flipAndInvertImage(self, image: List[List[int]]) -> List[List[int]]:\n        res = []\n        for i in image:\n            i.revers
```\nclass Solution:\n    def flipAndInvertImage(self, image: List[List[int]]) -> List[List[int]]:\n        res = []\n        for i in image:\n            i.reverse()\n            res.append([x ^ 1 for x in i])\n        return res\n```
['Python', 'Python3']