InterviewSolution
Saved Bookmarks
| 1. |
Given a 2D matrix, find a submatrix that has the maximum sum. Which of the following methods can be used to solve this problem?(a) Brute force(b) Recursion(c) Dynamic programming(d) Brute force, Recursion, Dynamic programmingI had been asked this question during an online exam.Query is from Maximum Sum Rectangle in a 2D Matrix topic in chapter Dynamic Programming of Data Structures & Algorithms II |
|
Answer» (d) Brute force, Recursion, Dynamic PROGRAMMING Brute force, Recursion, and Dynamic programming can be USED to FIND the submatrix that has the maximum sum. |
|