@dave no doubt division is costly, but will time complexity change in your case ?
On Sat, Sep 10, 2011 at 10:25 PM, Neha Singh <[email protected]>wrote: > the time complexity of my approach : O(a*b)^2 > and of the other approach, i guess : O(a) , where a is the larger no. > correct me if i m wrong > > So, complexity wise my approach does not seem to be gud > > -- > 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. > -- 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.
