@Siddhartha : i dont think so this will work for -ve number because we are doing A[ i - 1, j - W[i] ] so if W[i] is -ve number then it would increases Wmax which is the number of column.
i guess same algo can be modified so as to make it work for -ve number. On Mon, Jan 9, 2012 at 2:23 PM, Siddhartha <thefourrup...@gmail.com> wrote: > @lucifer and others: does this work for negative elements? What to do > then??? > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@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. > > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@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.