69 Sqrt(x)
69. Sqrt(x)
1. Question
Input: 4
Output:2Input: 8
Output: 2
Explanation:
The square root of 8 is 2.82842..., and since we want to return an integer, the decimal part will betruncated.2. Implementation
3. Time & Space Complexity
Last updated