Message on Whatsapp 8879355057 for DSA(OA + Interview) + Fullstack Dev Training + 1-1 Personalized Mentoring to get 10+LPA Job
0 like 0 dislike
739 views
in Online Assessments by Expert (108,110 points) | 739 views

1 Answer

0 like 0 dislike
Best answer

This came in my online coding round of Goldmann Sachs during summer Internship on campus
Please help!!!
I was not able to solve it .I thought of only 2 possibilities for each row (r[0] + r[1] or r[1] + r[2]) greedily.

 

algorithm but couldn’t do it as I had to also consider columns values as well .

 

Can someone give a clear approach to this problem ?
image

 

image

by Expert (108,110 points)