Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Files

Latest commit

 

History

History

367

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

367. Valid Perfect Square

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.

Example 1:

Input: 16
Output: true

Example 2:

Input: 14
Output: false