Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 28d52d0

Browse files
committed
Time: 1187 ms (12.69%) | Memory: 19.3 MB (24.22%) - LeetSync
1 parent cf26a97 commit 28d52d0

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

69-sqrtx/sqrtx.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
class Solution:
22
def mySqrt(self, x: int) -> int:
3-
if not x:
4-
return x
5-
3+
if not x :return x
64
ans = 1
75
for i in range(1,x):
86
if i * i <= x:

0 commit comments

Comments
 (0)