[LeetCode] 1284. Minimum Number of Flips to Convert Binary Matrix to Zero Matrix 转化为全零矩阵的最少反转次数

Given a m x n binary matrix mat. In one step, you can choose one cell and flip it and all the four neighbors of it if they exist (Flip is changing 1 t
posted @ 2022-02-28 23:52  Grandyang  阅读(431)  评论(0编辑  收藏  举报
Fork me on GitHub