Live Batches
Masterclasses
Menu
Free Courses
Account
Login / Sign Up
Problem Submissions Solution

Square Root of A Number

Difficulty: Medium

Acceptance: 63.00%

Points: 30.00

Given a non-negative integer x, return the integer square root of x. The integer square root is the greatest integer y such that y × y = x. You must not use any built-in exponent or square root functions.

Topics

Companies

Articles

Examples:

N/A

Constraints:
  • 0 = x = 2³¹ - 1
Companies:
Walmart
Topics:
Binary Search
Locked Content
Access Restricted: Please Login to access the code editor and test cases.