This is a nice page, but the solution closest to this problem requires n to be even. Using the same technique to take care of odd n cases is messy. The solution I posted seems simpler, and its efficiency is the same.
On Oct 9, 9:03 am, nishaanth <nishaant...@gmail.com> wrote: > http://people.csail.mit.edu/bdean/6.046/dp/ > > check out this lecture....... > > -- > S.Nishaanth, > Computer Science and engineering, > IIT Madras. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.