http://tech-queries.blogspot.com/2010/12/finding-minimum-window-in-array-which.html
just use words in place of chars... Regards, Akash Agrawal http://tech-queries.blogspot.com/ On Fri, Dec 31, 2010 at 11:00 AM, Davin <[email protected]> wrote: > Find the area with less distance between words. Distance is measured > words count in between two words. > > On Dec 30, 4:08 pm, 周翔 <[email protected]> wrote: > > "Distance is measured on number of words." what is your meaning ? can > you > > explain it? > > > > 2010/12/29 Davin <[email protected]> > > > > > > > > > > > > > > > > > Given set of words, find an area of the text where these words are as > > > close to each other as possible. > > > Distance is measured on number of words. > > > > > e.g. for words [rat”, “jat”, “pat”] and text “rat stop the pat blah > > > blah jat by pat jat tra la la” such area is “cat by mat bat” > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Algorithm Geeks" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]<algogeeks%[email protected]> > <algogeeks%2bunsubscr...@googlegroups .com> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/algogeeks?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<algogeeks%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
