
[leetcode-9] Palindrome Number
ยท
๐ข One step
LeetCode-9 PalindromeNumber : Given an integer x, return true if x is a palindrome, and false otherwise. note : From left to right, it reads -121. From right to left, it becomes 121-. Therefore it is not a palindrome.Answer :::python class Solution: def isPalindrome(self, x: int) -> bool: return str(x) == str(x)[::-1] Result : 57ms Memory: 13.7mb PalindromeNumber PalindromeNumber๋ ์์ผ๋ก ์ฝ์ผ๋ ๋ค๋ก ์ฝ์ผ๋..