Sqrt(x) Rounded Down
Asked at Uber · Coding Questions · Difficulty: Easy · Last asked Jan 22, 2026
Given a non-negative integer `x`, return the square root of `x` rounded down to the nearest integer. The result must be non-negative. You must not use any built-in exponent function or operator (e.g. no `pow(x, 0.5)` or `x ** 0.5`).
Loading the problem…