@Raghavan: What is wrong with return sqrt((double)num);
Since most CPUs have square root instructions, and a square root takes about the same time as a division, how can you hope to be any faster with software? Dave On Aug 30, 1:07 am, Raghavan <[email protected]> wrote: > how to design this logic effectively? > > double squareRoot(int num){ > > } > > -- > Thanks and Regards, > Raghavan KL -- 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.
