http://people.csail.mit.edu/bdean/6.046/dp/
from the above link go through 10th lecture of *Optimal strategy for a game*which nicely explains logic of Dynamic programing to find solution to the above problem. On Sun, Oct 10, 2010 at 10:49 AM, Asquare <anshika.sp...@gmail.com> wrote: > Hi every1.. > > I have understood wht the question demands > and also wht the 2D matrix u've used is doing > but I haven't been able to get the logic u guys have used (@Gene, > @Anand) > Could you please explain the logic..?? > > thanks :) > > -- > 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<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 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.