This is a test This is a programming test This is a programming test in any
language
1      1 1   1    2    2  2       2              2    3    3 3         3
         3   3   3        3    (count of this)
0      0 1   1    1    1  2       2              2    2    2 3         3
         3   3   3        3     (count of a)
0      0 0   1    1    1  1       1              2    2    2 2         2
         3   3   3        3     (count of test)
0      0 0   0    0    0  0       1              1    1    1 1         2
         2   2   2        2      (count of programming)

0      1 2   3    4    5  6       7              8    9    10 11     12
     13 14 15       16   (index)


now we need to select 2 indexes such tha the diff array i greater or equal
to [1,1,1,1]

(0,7) (1,7) (6,9) etc are some sol
out of which (6,9) is min

-- 


Reply via email to