Maximum Subarray of Ones after exactly two consecutive deletion
Anonymous User
242

Given Array of 0's and 1's .Find Maximum Subarray of Ones after exactly two consecutive deletion

input  :
5
1 1 1 0 0
output  : 3

input 2:
6
1 1 1 0 0 1
output 2: 4
Comments (2)