โ† Nagarro questions

Maximum sum submatrix of given size

Filed under Nagarro

Given an n x n 2D array and an integer k, find the maximum sum of any k x k submatrix. Return the maximum sum value.

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 Nagarro questions

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