โ† Goldman Sachs questions

Find submatrix with maximum sum

Filed under Goldman Sachs

Given a 2D matrix of integers, find the maximum sum of any contiguous rectangular submatrix. The submatrix can be of any size from 1x1 to the full dimensions of the matrix.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Goldman Sachs questions

Collected from public candidate posts and coding forums. Updated Nov 2026.