Loading...

The Precision Hunt

A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
medium
Seniority
mid, senior

Problem

A security team wants to compute integer square roots for certificate validation without using any math library functions. Write a function that takes a non-negative integer and returns the integer part of its square root. Return -1 for negative inputs.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.