Vidyalelo
Data Structure · Q209

Dynamic Programming in Data Structures

Programming · Data Structure · question 209

Q209

Consider the following code snippet: int max_sum_rectangle(int arr[][3],int row,int col) int left, right, tmp[row], mx_sm = INT_MIN, idx, val; for(left = 0; left mx_sm) ______; return mx_sm; Which of the following lines should be inserted to complete the above code?

A.
val = mx_sm
B.
return val
C.
mx_sm = val
Answer
D.
return mx_sm

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board