2119. 反转两次的数字
为保证权益,题目请参考 2119. 反转两次的数字(From LeetCode).
解决方案1
Python
python
# 5963. 反转两次的数字
# https://leetcode-cn.com/contest/weekly-contest-273/problems/a-number-after-a-double-reversal/
class Solution:
def isSameAfterReversals(self, num: int) -> bool:
if num == 0:
return True
if num % 10 == 0:
return False
return True
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11