maximum contiguous subsequence Where 0 and 1's are equal

You have a array of 0's and 1's. e.g.
0001011101001010100101010101100111
Find the maximum contiguous subsequence of the above sequence so the
number of 0's and 1's in that subsequence are equal

Comments

Popular posts from this blog