Epic Interview Question: Please write a function that ... | Glassdoor

Interview Question

Software Developer Interview(Student Candidate) Madison, WI

Please write a function that accepts a floating number and

  returns its square-root. You may not use built-in square root function from your language. However, basic operators like addition, subtraction, multiplication are allowed. Please take into consideration the floating precision.
Tags:
problem solving, programming
Answer

Interview Answer

3 Answers

0

Hint: please really take into consideration the floating point.

Interview Candidate on Aug 29, 2009
2

Newton's method: http://en.wikipedia.org/wiki/Newton's_method

dopey on Jun 6, 2011
1

http://www.dreamincode.net/code/snippet244.htm

rachicks on Mar 21, 2012

Add Answers or Comments

To comment on this, Sign In or Sign Up.