classSolution: deffindMirrorException(self, nums: list[int]) -> int: vis = set(nums) for x in nums: y = 0 v = x while v: v, d = divmod(v, 10) y = y * 10 + d if y notin vis: return x return -1
寫在最後
Cover Image Credit
The cover image features an artwork created by @坑爹の草神. All rights belong to the original artist.
If you are the copyright holder and prefer it not to be used here, please reach out via email or leave a comment, and I will remove it promptly.