C++ Fast And Easy Solution
```\nclass Solution {\npublic:\n       vector> flipAndInvertImage(vector>& A) {\n        for (auto& row : A) reverse(row.begin(), row.end());\n        for (auto
```\nclass Solution {\npublic:\n       vector<vector<int>> flipAndInvertImage(vector<vector<int>>& A) {\n        for (auto& row : A) reverse(row.begin(), row.end());\n        for (auto& row : A) for (int& i: row) i ^= 1;\n        return A;\n    }\n};
[]