当前位置:网站首页>Palindromes (simple version)
Palindromes (simple version)
2022-06-22 22:40:00 【Douglas_ LT】
A daily topic ing, Today is a simple question Power button 9. Palindrome Number
class Solution {
public:
bool isPalindrome(int x) {
string a;
int i=0;
if(x<0)
return false;
while(x!=0)
{
a[i++]=x%10+'0';
x=x/10;
}
for(int j=0,k=i-1;j<k;j++,k--)
{
if(a[j]!=a[k])
return false;
}
return true;
}
};
边栏推荐
- The link added in the bottom menu cannot jump to the secondary page
- Redis error reporting and common configurations
- [GWCTF 2019]mypassword XSS
- 二级造价工程师考前必备15个知识点来了!祝你旗开得胜!
- Eureka service registration and discovery
- A case of 94 SQL optimization (the writing method used is often rejected)
- MySQL multi table operation
- Why is yuancosmos so popular? Is the 10trillion yuan shouted by the market boasting or the truth?
- Pycharm configuring remote connection server development environment
- 【象棋人生】01 人生如棋
猜你喜欢

SPA项目开发之首页导航+左侧菜单

腾讯云上传文件出现的问题:in a frame because it set ‘X-Frame-Options‘ to ‘deny‘.

Eureka服务注册与发现
A hundred lines of code to realize reliable delay queue based on redis

LinkedList 源码解析

How to carry out encryption protection for equipment under extortion virus rampant

Registration of spa project development
![[GWCTF 2019]mypassword XSS](/img/26/3611fd5aae21ea004dcfcc2c623328.png)
[GWCTF 2019]mypassword XSS

Huawei cloud recruits partners in the field of industrial intelligence to provide strong support + commercial realization

Some shaders in AB package do not trigger the callback of ipreprocessshaders
随机推荐
Lua-- use of data types, variables, loops, functions and operators
In 2022, the "product innovation and achievement transformation" training camp of Chaoyang District Science and technology innovation class was successfully completed
How to use the data dictionary function in the low code platform of the Internet of things?
Crud+ form verification for spa project development
腾讯云上传文件出现的问题:in a frame because it set ‘X-Frame-Options‘ to ‘deny‘.
VS代码一键整理快捷键
Redis error reporting and common configurations
考生必读篇 | PMP6月25日考试临近,需要注意什么?
What are the methods of software stress testing and how to select a software stress testing organization?
NiO copy file call getchannel method transferfrom()
Shell (34): Time
《强化学习周刊》第50期:SafeRL-Kit、GMI-DRL、RP-SDRL & 离线元强化学习
. Net 5.0 realizes the source code analysis of the oidc authentication part of single sign on through identityserver4
CYCA少儿形体礼仪 深圳市培训成果考核圆满落幕
Install MySQL for Linux (package succeeded!!)
General trend wisdom to create inclined model and cut monomer
Makefile:1860: recipe for target ‘cmake_check_build_system‘ failed make: *** [cmake_check_build_syst
Système de bibliothèque libre - service - cas de conception complète de l'interface tkinter et du formulaire openpyxl
Seriously, the hang up of the kotlin collaboration process is not so mysterious (principle)
[geometric vision] 4.2 piecewise linear transformation