From 42d509acff8acc4c7a9a0fd47e85d3b049f42277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EA=B2=BD=ED=83=81?= Date: Sat, 1 Aug 2026 03:31:35 +0900 Subject: [PATCH] Add mirrorDistance function to calculate distance --- .../3783_Mirror_Distance_of_an_Integer.py" | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 "leetcode3/\352\271\200\352\262\275\355\203\201/3783_Mirror_Distance_of_an_Integer.py" 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)) +