Count Square Submatrices with All 1s | DP on Rectangles : DP 56 - Tutorial
Blog
Discussion
Solve
Editorial