@Balaji : By using Dave's algo it gives TLE and it should be ...try taking n as large as 10^18. How did u reduce the no. of iterations in this case ??
On Mon, May 23, 2011 at 9:07 PM, Balaji S <balaji.ceg...@gmail.com> wrote: > @Dave: nice idea.. ll this give AC ? > > -- > 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.