Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Latest commit

 

History

History

0009.palindrome-number

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

题目

Determine whether an integer is a palindrome. Do this without extra space.

解题思路

检查一个整数是否是回文。

先把整数转换成字符串,再检查字符串是否是回文。