All Questions
2
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:
...
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....