← Amazon questions

Max Sum KxK Submatrix

Filed under Amazon

Given an m x n matrix of integers and an integer k, find the maximum sum of any k x k submatrix.

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

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