Leetcode Problem

Problem >>https://leetcode.com/problems/get-biggest-three-rhombus-sums-in-a-grid/

My code is failing one test case. Can u plz help with this
my code>>>>

hello @joshisanjay8467

u r assumming that from center (i,j) u can get only one rhombous which is wrong.

since we need 3 distinct max sum rhombus it may happend that two or all of them are from the same centere (i,j) with differnt dimension.

insert all dimesions sum from (i,j) in set and then in end pick top 3.

yeah yeah got that bhaiya thanks !!!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.