Posted on February 23, 2021February 23, 2021 Description Submission class Solution { public: vector<vector<int>> flipAndInvertImage(vector<vector<int>>& A) { for(auto& a: A) { reverse(a.begin(), a.end()); } for(auto& a: A) { for(auto& x: a) { x = 1 - x; } } return A; } }; By Bill0412 Easy LeetCode