arrow_back Back to Challenges

#69 Sqrt(x)

Easy Acceptance 0%
description

Problem Description

Given a non-negative integer `x`, return the square root of `x` rounded down to the nearest integer. The returned integer should be non-negative as well. You must not use any built-in exponent function or operator.

checklist Constraints

See problem description for detailed constraints.

science Examples

Case #1

In: # See problem description for input format
Out: # Expected output

Mastery Tags

Binary Search Math

Hiring Companies

Google Microsoft
code

Integrated IDE

code_blocks
Coding
psychology
Aptitude