leetcode_367
Given a positive integer num, write a function which returns True if num is a perfect square else False.
Note: Do not use any built-in library function such as sqrt.
Solutions
The problem is equivalent to calculating the square root of the given number.
See problem 69 for details.
newton's method
binary search
Last updated
Was this helpful?