Goldman Sachs Interview Question

how to find square root of integer

Interview Answers

Anonymous

Nov 11, 2015

double answer = java.Math.sqrt( ); You could use some other method. but that would be doing it wrong.

1

Anonymous

Sep 30, 2013

Newton's Method: http://en.wikipedia.org/wiki/Newton's_method#Square_root_of_a_number

Anonymous

May 19, 2010

binary search

4