Simplest and Most Intuitive C++ solution
```\nvector> flipAndInvertImage(vector>& A) {\n        int row = A.size(), col = A[0].size();\n        for(int i = 0; i < row; i++)        \n            for(int
```\nvector<vector<int>> flipAndInvertImage(vector<vector<int>>& A) {\n        int row = A.size(), col = A[0].size();\n        for(int i = 0; i < row; i++)        \n            for(int j = 0; j <= (col - 1) / 2; j++)\n            {\n                int temp = A[i][j];\n                A[i][j] = !A[i][col - j - 1];\n                A[i][col - j - 1] = !temp;\n            }\n        \n        return A;\n    }
['C']