What is the time complexity of in-built square root function ?
Binary Search Sqrt
Hey @aman_ishan
It is 0(log2(n)). Where n is 10^x.
Eg Let’s say we need to find square root of 1678 upto y decimal place accuracy. Then x is log10(1678)+y.
If your doubt is resolved please make sure to mark it as closed.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.