Find square submatrix with given sum
Filed under Media.net
The question
Given a 2D array of integers with dimensions n x m and a value k, find if there exists a square submatrix whose sum is equal to k.
No write-up yet. Related questions below have one.
Related Media.net questions
Collected from public candidate posts and coding forums. Updated Nov 2026.