Grokking Data Structures & Algorithms for Coding Interviews
Ask Author
Back to course home

0% completed

Vote For New Content
Vishnu S Nair
Wrong Statement in solution

Vishnu S Nair

Feb 22, 2025

For any integer x, the square root of x will lie between 0 and x/2 (inclusive) for x > 2.

The upper bound rule does not always hold for small values of x, particularly for x = 3.

4

0

Comments
Comments
Wee Keat
Wee Keat4 months ago

Square root of 3 is ~1.732, which the integer value is 1.

On this page