2022-07-02
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.Solution
Approach #0: Binary Search
Last updated