摘要: There is an m x n matrix that is initialized to all 0's. There is also a 2D array indices where each indices[i] = [ri, ci] represents a 0-indexed loca 阅读全文
posted @ 2021-04-15 17:08 Makerr 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 1、数组a中一组数(a[i]只能是0或者1),0变成1,1变成0,怎样操作?比如,lt 832题 答:a[i]与1进行异或运算(异或运算:不同为真,相同为假) 2、判断一个数是奇数还是偶数?比如,lt 1342题 一个数的二进制从右向左的与1进行&运算,结果为0,则这个十进制数是偶数,结果为1,则这 阅读全文
posted @ 2021-04-15 11:39 Makerr 阅读(40) 评论(0) 推荐(0) 编辑
摘要: Given an n x n binary matrix image, flip the image horizontally, then invert it, and return the resulting image. To flip an image horizontally means t 阅读全文
posted @ 2021-04-15 10:49 Makerr 阅读(46) 评论(0) 推荐(0) 编辑