Update 9. Palindrome Number.md

This commit is contained in:
唐树森 2019-09-13 22:50:30 +08:00 committed by GitHub
parent abcc0a6bce
commit 3a9ad8327a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@
首先小于0肯定不是可以直接返回false 首先小于0肯定不是可以直接返回false
对于一般的int型数可以先将其转换成字符串这样判断是否回文就快多了。 对于一般的int型数可以先将其转换成字符串这样判断是否回文就快多了。
# C++ # C++
``` ``` C++
class Solution { class Solution {
public: public:
bool isPalindrome(int x) { bool isPalindrome(int x) {