2119. A Number After a Double Reversal

Обновлено: 2024-03-12
1 мин
[]

Содержание

LeetCode problem 2119

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