当前位置:网站首页>LeetCode练习3——回文数
LeetCode练习3——回文数
2022-07-28 20:56:00 【却道天凉_好个秋】
bool isPalindrome(int x) {
if(x < 0)
return false;
long long n = 0;
int m = x;
while(0 != m)
{
n = n * 10 + m % 10;
m = m / 10;
}
return x == n;
}边栏推荐
- 775. 倒排单词
- winform跳转第二个窗体案例
- 容器化配置启动redis集群 单机6节点 3主3从
- STM32_ Hal library driven framework
- 近期bug总结
- 使用PCL批量将点云.bin文件转.pcd
- 775. Inverted words
- Use PCL to batch convert point cloud.Bin files to.Pcd
- [connect set-top box] - use ADB command line to connect ec6108v9 Huawei Yuehe box wirelessly
- mysql8.0无法给用户授权或提示You are not allowed to create a user with GRANT的问题
猜你喜欢

C language to realize string reverse order arrangement

es个人整理的相关面试题

Gd32f303 firmware library development (10) -- dual ADC polling mode scanning multiple channels

Att & CK Threat Intelligence

Lvs+keepalived high availability deployment practical application

How to delete and remove the first row of elements in PHP two-dimensional array

使用PCL批量将点云.bin文件转.pcd

Intelligent control -- fuzzy mathematics and control

WinForm jump to the second form case

What to do after mathematical modeling gets the competition problem and some ("crooked ways") tips - must see before the competition
随机推荐
Anomaly detection summary: intensity_ based/Normalizing Flow
How to delete and remove the first row of elements in PHP two-dimensional array
Integrating database Ecology: using eventbridge to build CDC applications
JS get the current time (year month day hour minute second)
79. Word search (medium string array matrix backtracking)
PUA in the workplace, but it makes sense
Use PCL to batch convert point cloud.Bin files to.Pcd
JVM -- custom class loader
STM32 -- program startup process
PC side web page special effects (offset series, obtain the coordinates of the mouse in the box, pop-up drag effect, magnifying glass effect)
Excel-vba quick start (XIII. Common usage of date)
770. 单词替换
Sword finger offer II 065. The shortest word code (medium dictionary tree string array)
STM32 - external interrupt application (exti) (use cubemx to configure interrupts)
20-09-27项目迁移到阿里折腾记录(网卡顺序导致服务无法通过haproxy连接到db)
GD32F303固件库开发(10)----双ADC轮询模式扫描多个通道
Solve the problem that TS node xxx.ts executes TS code and reports errors
winServer运维技术栈
Intelligent control -- fuzzy mathematics and control
PaddleNLP基于ERNIR3.0文本分类:WOS数据集为例(层次分类)