[LeetCode] 367. Valid Perfect Square
Python
class Solution:
def isPerfectSquare(self, num: int) -> bool:
if num ** 0.5 == int(num ** 0.5):
return True
else:
return False
class Solution:
def isPerfectSquare(self, num: int) -> bool:
if num ** 0.5 == int(num ** 0.5):
return True
else:
return False
댓글남기기