Guneesh Paul Singh <guneesh27@...> writes: > > > 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 solout of which (6,9) is min > > >
I happened to come across this solution, and i dnt understand how u pick those two indices. can u plz elaborate on that procedure? Thanks. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To unsubscribe from this group and stop receiving emails from it, send an email to algogeeks+unsubscr...@googlegroups.com.