1.

Consider the 3×3 matrix {{2,1,-3},{6,3,4},{-2,3,0}}. What is the sum of the elements of the maximum sum rectangle?(a) 13(b) 16(c) 14(d) 19This question was addressed to me in an online quiz.This is a very interesting question from Maximum Sum Rectangle in a 2D Matrix topic in section Dynamic Programming of Data Structures & Algorithms II

Answer»

The correct choice is (C) 14

Easy explanation - The complete MATRIX REPRESENTS the maximum SUM rectangle and it’s sum is 14.



Discussion

No Comment Found

Related InterviewSolutions