Thursday, April 11, 2013

Amazon Interview Question #2 - Maximum Sum Sub Matrix


This is a slightly more involved problem, We would be very happy if someone could code this within the stipulated interview time. I was going to vote "Strongly Inclined" for that candidate:).


Amazon Interview Question #2: 

Problem: Maximum Sum Sub Matrix.
Description: given an integer matrix find the sub matrix that has maximum sum.

This is a logical extension of Amazon Interview Question #1: Maximum Sum Sub Array. This is essentially the same problem in 2D space.


My Solution:


Have Feedback?Is my solution buggy?
please leave a comment

No comments: