Recently I have encountered a difficult problem.
Given a matrix with size n * m (1 <= n, m <= 1500) consist of only 0 and 1, count the number of submatrix contains exactly k 1's. (0 <= k <= 6).
Could you help me to find an approach for this problem? Thanks