Skip to content

Commit 28c6c23

Browse files
Update 367.py
1 parent bc7c947 commit 28c6c23

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

001-500/367.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ def isPerfectSquare(self, num: int) -> bool:
1010
else:
1111
right = mid - 1
1212
return False
13+
14+
15+
16+
class Solution:
17+
def isPerfectSquare(self, num: int) -> bool:
18+
return (int(num**0.5) * int(num**0.5)) == num

0 commit comments

Comments
 (0)