Mine Solution to the problem flip in C++


#1

Mine Solution to above problem using Kadanes AlgorithmLink

Beware of corner conditions testcases like

000
111
0000111110000