69. Sqrt(x)
LeetCode 69. Sqrt(x)
Description
Input: x = 4
Output: 2Input: x = 8
Output: 2
Explanation: The square root of 8 is 2.82842..., and since the decimal part is truncated, 2 is returned.Tags
Solution
Complexity
Code
Last updated