0367. Valid Perfect Square
Easy | Binary Search | 24 ms (95.55%), 14.2 MB (68.22%)
Source: LeetCode - Valid Perfect Square GitHub: Solution / Performance
Given a positive integer num, write a function which returns True if num is a perfect square else False.
Follow up: Do not use any built-in library function such as sqrt
.
Last updated
Was this helpful?