Java- Clean and Easy to understand in 7 ms
\nclass Solution {\n    public int[][] flipAndInvertImage(int[][] A) {\n        int invertedImage[][] = new int[A.length][];\n        for(int i = 0; i < A.lengt
```\nclass Solution {\n    public int[][] flipAndInvertImage(int[][] A) {\n        int invertedImage[][] = new int[A.length][];\n        for(int i = 0; i < A.length; i++)\n        {\n           int rev[] = reverseNum(A[i]);\n           int inv[] = inverseNum(rev);\n           invertedImage[i] = inv;  \n        }\n        return invertedImage;\n    }\n    \n    private int[] reverseNum(int num[])\n    {\n        for(int i = 0; i < (num.length)/2; i++)\n        {\n            int temp = num[i];\n            num[i]  = num[num.length - i - 1];\n            num[num.length - i - 1] = temp;\n        }\n        return num;\n    }\n    \n    private int[] inverseNum(int num[])\n    {\n        for(int i = 0; i < num.length; i++)\n        {\n             num[i] = num[i]^1;\n        }\n        return num;\n    }\n    \n}\n```
[]