Ia m able to pass 3 out of 6 test cases. i am converting each 0 to 1 and am trying to compute max rectangular area by using dfs. i am getting tle in 3 test cases. please suggest better approach.
link to my code is–https://ide.codingblocks.com/s/77414
Doubt in--Expand the Pond
refer for the best approach