Integer square root
Your task
Given a non-negative integer n, return the floor of its square root (the largest integer r with r*r <= n) without using any floating-point square-root function. Handle n = 0 and n = 1.
Examples
isqrt_floor(n: int) -> intExample 1
Input
isqrt_floor(8)Output
2