This repository was archived by the owner on Sep 22, 2021. It is now read-only.

Description
Description of the Problem
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.
Code
class Solution(object):
def isPerfectSquare(self, num):
"""
:type num: int
:rtype: bool
"""
Link To The LeetCode Problem
LeetCode