python, 1. map/functools.partial/lambda/reversed, 2. list comprehension/xor/reversed, 3. hybrid
Solution 1: map, functools.partial, lambda, reversed  \nhttps://leetcode.com/submissions/detail/883403380/  \nRuntime: 69 ms, faster than 35.35% of Python3 onli
**Solution 1: map, functools.partial, lambda, reversed**  \nhttps://leetcode.com/submissions/detail/883403380/  \nRuntime: **69 ms**, faster than 35.35% of Python3 online submissions for Flipping an Image.  \nMemory Usage: 13.8 MB, less than 58.85% of Python3 online submissions for Flipping an Image.  \n```\nclass Solution:\n    def flipAndInvertImage(self, image: List[List[int]]) -> List[List[int]]:\n        return map(partial(map, lambda x: 0 if x else 1), map(reversed, image))\n```\n\n**Solution 2: list comprehension, xor, reversed**  \nhttps://leetcode.com/submissions/detail/883408340/\nRuntime: **50 ms**, faster than 87.19% of Python3 online submissions for Flipping an Image.  \nMemory Usage: 13.9 MB, less than 58.85% of Python3 online submissions for Flipping an Image.  \n```\nclass Solution:\n    def flipAndInvertImage(self, image: List[List[int]]) -> List[List[int]]:\n        return [reversed([pixel^1 for pixel in row]) for row in image]\n```\n\n**Solution 3: hybrid**  \nhttps://leetcode.com/submissions/detail/883418919/  \nRuntime: **43 ms**, faster than 98.69% of Python3 online submissions for Flipping an Image.  \nMemory Usage: 13.9 MB, less than 58.85% of Python3 online submissions for Flipping an Image.  \n```\nclass Solution:\n    def flipAndInvertImage(self, image: List[List[int]]) -> List[List[int]]:\n        return [reversed(list(map(int, map(operator.not_, row)))) for row in image]\n```
['Python']