832. 翻转图像

832. 翻转图像

一行代码搞定

/**
* @param {number[][]} A
* @return {number[][]}
*/
var flipAndInvertImage = function(A) {
return A.map(a => a.map(i => i ^ 1).reverse())
};
# 数组

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×