no.. each ans[s] is stored before returning.. so there is no recalculation of any substring
On Sun, Sep 18, 2011 at 4:12 AM, Marcelo Amorim Menegali < mmeneg...@gmail.com> wrote: > *ans[s]=find(s+1,len-1);* >> if(s[0]<'3'&&s[1]<'7') >> *ans[s] = ans[s]+find(s+2,len-2);* > > -- 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.