diff --git "a/leetcode3/\352\271\200\352\262\275\355\203\201/3783_Mirror_Distance_of_an_Integer.py" "b/leetcode3/\352\271\200\352\262\275\355\203\201/3783_Mirror_Distance_of_an_Integer.py" new file mode 100644 index 00000000..084656a8 --- /dev/null +++ "b/leetcode3/\352\271\200\352\262\275\355\203\201/3783_Mirror_Distance_of_an_Integer.py" @@ -0,0 +1,8 @@ +class Solution: + def mirrorDistance(self, n: int) -> int: + + str_n=str(n) + re=str_n[::-1] + + return abs(n-int(re)) +