class Solution(object): def isPerfectSquare(self, num): """ :type num: int :rtype: bool """ for x in range(1000000): if x*x==num: return True return False
class Solution(object): def isPerfectSquare(self, num): """ :type num: int :rtype: bool """ for x in range(1000000): if x*x==num: return True return False