2013年10月7日

子矩阵中共享1的最长对角线

摘要: 来源:http://www.careercup.com/question?id=6130581557477376Given a n by m matrix of bits find the largest X that is formed in the matrix and return the size of the diagonal of that X. An X is defined as 2 equally sized diagonals that share a single 1.For instance, the matrix:001000010001001000001100000 阅读全文

posted @ 2013-10-07 17:21 walkwalkwalk 阅读(328) 评论(0) 推荐(0) 编辑

导航