Sqrt(x) II
ID: 586; medium; 对x开根II
Solution 1 (Java)
Notes
Discuss the cases when
x
is greater than 1 andx
is less than 1.12 decimal places can be achieved by setting the
delta
/difference between left and right to be1e-12
.
Last updated