2119. A Number After a Double Reversal

Updated: 2024-03-12
1 min read
[]

On This Page

LeetCode problem 2119

class Solution:
    def isSameAfterReversals(self, num: int) -> bool:
        return num == 0 or num % 10 != 0