Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Valid Perfect Square (Easy 367)

Given a positive integer num, write a function which returns True if num is a perfect square else False.

Solution:

Click here Use binary search between 1 and x. Use stop condition if mid * mid = x. O(log n) time, O(1) space.



Installation

Run make to run python and Swift files.