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