Yahoo Interview Question

How can you calculate the square root of any number without using Math.sqrt().

Interview Answer

Anonymous

Oct 26, 2018

Use binary search to split in half recursively, changing lower and upper bounds as appropriate

1