Is this is correct approach!


#1

class Solution:
# @param A : integer
# @return an integer
def sqrt(self, A):
import math
sr=(A)**(1/2)
if(sr-math.floor(sr)==0):
return(int(sr))
else:
return(int(math.floor(sr)))