2119. A Number After a Double Reversal
Read the full problem statement on LeetCode.
Difficulty: easy Acceptance: 81% Topics: Math
View full problem on LeetCode Reading material
Reference solution (spoiler · python)
# Time: O(1)
# Space: O(1)
class Solution(object):
def isSameAfterReversals(self, num):
"""
:type num: int
:rtype: bool
"""
return num == 0 or num%10
Solution from kamyu104/LeetCode-Solutions · MIT
Similar questions