@Mohit: I still did not get it. Suppose m = 4
And the integers are 5 3 2 7 1 2 ... How do you proceed? Here the answer is (3,1) & (2,2). On Mon, Oct 25, 2010 at 7:04 AM, MOHIT .... <[email protected]> wrote: > @preethika : .. mohan is right .. better to do it while inserting because > may be u can get answer without hashing all element in between .... > > -- > 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.
