JavaScript
Runtime: 76 ms, faster than 98.04% of JavaScript online submissions for Flipping an Image.\nMemory Usage: 40.6 MB, less than 40.43% of JavaScript online submiss
Runtime: 76 ms, faster than 98.04% of JavaScript online submissions for Flipping an Image.\nMemory Usage: 40.6 MB, less than 40.43% of JavaScript online submissions for Flipping an Image.\n\n```\nvar flipAndInvertImage = function(A) {\n    var a = A.map((item)=> item.map((innerItem)=> innerItem===1? 0:1).reverse());\n    return a;\n};\n```
[]