Skip to main content
Sqrt(x) | AlgoCracked
AlgoCracked
ProblemsSqrt(x)
Easy37.0% acceptance
MathBinary Search

Sqrt(x)

Given a non-negative integer x , return the floor of its square root — the largest integer whose square does not exceed x . Do not use any built-in exponent or square-root function. Input format Input is [x] , e.g. [8] .

Loading workspace…