Square Root With Prcision

please tell again how to find square root till 6 decimal places and how it is linear

First of all, we use binary search to get numerical value.
For example n=37, get 6.
Now for digits after point, simply check with 1,2,3…9.
Then check for next position 1,2,3…9 (bruteforce kindof thing)

Why to use binary search on 10 numbers only?
Just get it done in linear time :slight_smile:

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.