1. How I sloved

    I simply used the ‘**’ operator for the square root operation.

2. Code

class Solution:
    def mySqrt(self, x: int) -> int:
        return int(x**0.5)

3. Result

        Runtime : 24 ms(97.79%), Memory usage : 14.1 MB(99.99%)
        (Runtime can be different by a system even if it is a same code.)

Check out the my GitHub repo for more info on the code. If you have questions, you can leave a reply on this post.