Skip to main content

All Questions

10 votes
8 answers
13k views

Calculate square of a number without multiplication

I wrote these two methods to calculate the square of a number: ...
user avatar
5 votes
3 answers
2k views

Square root implementations

The question was: Write a function that calculates the root of a given number. Answer A = I wrote it for integers. just run up to half of the number Answer B+C = are for double, using Newton's law....
Gilad's user avatar
  • 5,311