Help me out there

My suggestion is print what u want to send in kadane and check if its actually going
I think u are getting confused with left,right,n and row variables

@Kartikkhariwal1

@Kartikkhariwal1
SEE THIS APPROAACH

@Kartikkhariwal1 ARE U THERE??

@Kartikkhariwal1 ???

checking the video , wait :slight_smile:

@Kartikkhariwal1 okay

Hey @shivammishra20121999

This is according to the video
But this approach may not work because que is different

@Kartikkhariwal1
//Convert 2D array to 1D by row
//Clear vector to st
//Add next rowart the row with i as starting row.
apply kadane algorithm on every possible subarray

@Kartikkhariwal1 you are expanding column wise

I expanded just like he did in video
If u want to do otherwise then u have to use

I

@Kartikkhariwal1
see in kadane algorithm i am finding maximum sum less than equal to k

Yeah I know but it will not work according to me
You can try urself once u are able to understand what u are sending in kadane

@Kartikkhariwal1


see this is my upadated code passing 23 out of 27

@Kartikkhariwal1 are u there??

Hey @shivammishra20121999
I think abha answered ur query

@Kartikkhariwal1


this is my code as per abha logic but still giving tle?