thanks anshu, i m working with segment trees now. Ur algo seems convincing to me. nice solution !!
Ankit On Wed, May 25, 2011 at 1:54 AM, anshu mishra <[email protected]>wrote: > two thing i have forgot do; > > that is at every iteration > > rem--; > last = D[i-1]; > > -- > 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. > -- 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.
