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](https://assets.leetcode.com/users/images/8d4757d6-9d52-4c23-ab27-34c2c1f80b5c_1641620109.8373113.png)
![image](https://assets.leetcode.com/users/images/82a74792-e46b-4660-aee9-f9889ad00d03_1641620118.28477.png)