mirror of
https://github.com/ShusenTang/LeetCode.git
synced 2026-08-23 23:24:45 +08:00
Update 9. Palindrome Number.md
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
首先小于0肯定不是可以直接返回false;
|
||||
对于一般的int型数,可以先将其转换成字符串,这样判断是否回文就快多了。
|
||||
# C++
|
||||
```
|
||||
``` C++
|
||||
class Solution {
|
||||
public:
|
||||
bool isPalindrome(int x) {
|
||||
|
||||
Reference in New Issue
Block a user