Mine Solution to above problem using Kadanes AlgorithmLink
Beware of corner conditions testcases like
000
111
0000111110000
…
Mine Solution to above problem using Kadanes AlgorithmLink
Beware of corner conditions testcases like
000
111
0000111110000
…