Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf26a97 commit 28d52d0Copy full SHA for 28d52d0
1 file changed
69-sqrtx/sqrtx.py
@@ -1,8 +1,6 @@
1
class Solution:
2
def mySqrt(self, x: int) -> int:
3
- if not x:
4
- return x
5
-
+ if not x :return x
6
ans = 1
7
for i in range(1,x):
8
if i * i <= x:
0 commit comments