[LeetCode][python3]0009. Palindrome Number

  1. My first solution
class Solution:
def isPalindrome(self, x: int) -> bool:
if str(x)== str(x)[::-1]:
return True
else:
return False
N2I -2020.03.16

--

--

--

HI I’m N2I. Now a SWE in Taiwan. Check out more about me in https://nzi2020.blogspot.com/ or contact via email: nayzi9999@gmail.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Agent Side Functions in Puppet 6

Unveiling Corda and Corda Enterprise 4.5 and Corda Network Enterprise Manager 1.3

Lamden Mainnet is Coming

Ugly Sweaters with CSS

Hexadecimal color code for transparency in Android

Is Scrum Stifling Your High-Functioning Team?

Turing machines in Python

ValueStream: Introducing GitHub Pull Request Metric Reports

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
N2I

N2I

HI I’m N2I. Now a SWE in Taiwan. Check out more about me in https://nzi2020.blogspot.com/ or contact via email: nayzi9999@gmail.com

More from Medium

Merge Sort In Python

How to implement a stack class and deque. PYTHON data structures and algorithm.

Introduction to LinkedList

Use of python dictionary get function