mirror of
https://github.com/ShusenTang/LeetCode.git
synced 2024-09-02 14:20:01 +00:00
Update 9. Palindrome Number.md
This commit is contained in:
parent
abcc0a6bce
commit
3a9ad8327a
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user