https://ide.codingblhttps://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/ocks.com/s/389783
Help me out there
Yeah what is the issue, why u are printing log1/ …
I think u share the wrong code
Yeah … …
so u are having buffer issue ?
yeah
for(int k=0;k<row;k++)
{
temp[k]+=mat[right][k]; //updated this
}
You want to take one row at a time
right?
I just change it according to ur code
Tell me your algo
I will tell you where u are going wrong
@Kartikkhariwal1
i am starting from each row and make all pssible rectangles
with the help of kadane algoeithms