Nth root of a number

What is a efficient algorithm to calculate nth root of some number??

I’m doing using pow(n,(1.0/(double)j); but it gives precision error, is there any other efficient way to calculate this?

You are not supposed to ask this question during the ongoing contest…You better wait for the contest to end.

1 Like

I will answer this question after 3 o-clock on 12th Dec.

So, according to you I’m o the right track, its the only optimization required?