got it :) AC
used single array nd got the job done.......... On Thu, Jun 23, 2011 at 4:22 AM, harshit pahuja <[email protected]>wrote: > @piyush > using array is mecessary as constraints are n,d<1000000 > so recursion cannot go to that much depth as we have stack limits.... > > what do u suggest > -- HARSHIT PAHUJA M.N.N.I.T. ALLAHABAD -- 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.
