当前位置:网站首页>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;
}边栏推荐
- The blueprint of flask complements openpyxl
- Paddlenlp is based on ernir3.0 text classification. Take the traditional Chinese medicine search and retrieval semantic map classification (kuake-qic) as an example [multi classification (single label
- JS implementation generates a random key of specified length
- Summary of recent bugs
- Memseg [anomaly detection: embedded based]
- Analysis notes on let (const) temporary dead zone in JS
- STM32 - systick timer (cubemx configures systick)
- BOM (location object, navigation object)
- 6K6w5LiA5qyh5pS75Ye75YiG5p6Q
- 842. Arrange numbers
猜你喜欢

【转载】token令牌在登录场景使用

Concise history of graphic technology

STM32 - interrupt overview (interrupt priority)

Qt+FFmpeg环境搭建

STM32 - memory, I2C protocol

79. Word search (medium string array matrix backtracking)

winform跳转第二个窗体案例

LTE小区搜索过程及SCH/BCH设计

GD32F303固件库开发(10)----双ADC轮询模式扫描多个通道
![Paddlenlp is based on ernir3.0 text classification. Take the crime prediction task of cail2018-small dataset as an example [multiple tags]](/img/87/d943cc1e8169bb670414fbf7a322c5.jpg)
Paddlenlp is based on ernir3.0 text classification. Take the crime prediction task of cail2018-small dataset as an example [multiple tags]
随机推荐
elment-plus图标input上面带的图标为什么不显示
Solve Jupiter: the term 'Jupiter' is not recognized as the name of a cmdlet, function, script file
Static details of static members
771. 字符串中最长的连续出现的字符
Sword finger offer II 065. The shortest word code (medium dictionary tree string array)
Leetcode integer exercises integer inversion
Fastflow [abnormal detection: normalizing flow]
NPM switch Taobao source (NPM source)
BOM (location object, navigation object)
Concise history of graphic technology
二进制的原码、反码、补码
Command line agent: proxychains configuration
SSH password free login
32. Longest valid bracket (difficult stack string)
es个人整理的相关面试题
AWK空行过滤
20-09-27项目迁移到阿里折腾记录(网卡顺序导致服务无法通过haproxy连接到db)
76. Minimum coverage substring (hard sliding window hash table string)
842. 排列数字
775. Inverted words