69. Sqrt(x)
problem description
Input: 4
Output: 2Input: 8
Output: 2
Explanation: The square root of 8 is 2.82842..., and since
the decimal part is truncated, 2 is returned.algorithm thought
code
algorithm analysis
Last updated