当前位置:网站首页>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;
}
边栏推荐
- Ultra detailed visual studio 2019 running littlevgl (lvgl) simulator
- Command line agent: proxychains configuration
- How to delete and remove the first row of elements in PHP two-dimensional array
- STM32 - Communication
- 76. Minimum coverage substring (hard sliding window hash table string)
- 842. Arrange numbers
- ATT&CK初步了解
- redis相关
- Differernet [anomaly detection: normalizing flow]
- flask之蓝图 补充openpyxl
猜你喜欢
Att & CK Threat Intelligence
Summary of common error types in JS
微信小程序剪切图片的功能
使用PCL批量将点云.bin文件转.pcd
STM32CUBEIDE(10)----ADC在DMA模式下扫描多个通道
B站713故障后的多活容灾建设|TakinTalks大咖分享
Qt+FFmpeg环境搭建
Fastflow [abnormal detection: normalizing flow]
STM32 - memory, I2C protocol
[get mobile information] - get mobile information through ADB command
随机推荐
ATT&CK 威胁情报
php二维数组如何删除去除第一行元素
Att & CK Threat Intelligence
The blueprint of flask complements openpyxl
c语言实现字符串逆序排列
STM32 - DMA direct memory access controller (cubemx configures DMA)
LTE小区搜索过程及SCH/BCH设计
DOM programming + events
ATT&CK初步了解
[connect set-top box] - use ADB command line to connect ec6108v9 Huawei Yuehe box wirelessly
npm ERR code ETIMEDOUT npm ERR syscall connect npm ERR errno ETIMEDOUT npm ERR network reques...
Ngrok intranet penetration
es个人整理的相关面试题
JVM -- custom class loader
ssh免密登陆
79. Word search (medium string array matrix backtracking)
删除容器镜像报错解决image is referenced in multiple repositories
基于Ernie-3.0 CAIL2019法研杯要素识别多标签分类任务
CMD common commands
PUA in the workplace, but it makes sense