摘要:        
问题: 给定数组,判断其中含有多少个3阶幻方 Example 1: Input: [[4,3,8,4], [9,5,1,9], [2,7,6,2]] Output: 1 Explanation: The following subgrid is a 3 x 3 magic square: 438 9    阅读全文
posted @ 2020-05-13 14:06
habibah_chang
阅读(124)
评论(0)
推荐(0)
        
            
        
        
摘要:        
问题: 给定两个大小相同,由0和1构成的N*N矩阵。求将其中一个矩阵进行水平垂直平移,最终两个矩阵重叠(1)的最大面积为多少。 Example 1: Input: A = [[1,1,0], [0,1,0], [0,1,0]] B = [[0,0,0], [0,1,1], [0,0,1]] Outp    阅读全文
posted @ 2020-05-13 11:23
habibah_chang
阅读(134)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号