Pregunta de entrevista de Meta

Compute square root of a integer, without using the built-in sqrt method.

Respuestas de entrevistas

Anónimo

19 mar 2014

Use binary search

2

Anónimo

13 abr 2014

Either the sqrt method as suggested, with special handling of numbers less than 1, or use exp(0.5 * log(x))