E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
palindrome
利用正则表达式判断一个给定的字符是否是回文
如果一个字符串忽略标点符号、大小写和空格,正着读和反着读一模一样,那么这个字符串就是
palindrome
(回文)。
54墨玉
·
2016-11-10 16:10
Palindrome
Number
问题:Determinewhetheranintegerisa
palindrome
.Dothiswithoutextraspace.大意:判断一个整数是否是回文。不使用额外的空间来完成。
Cloudox_
·
2016-11-04 09:00
LeetCode
HDU 1513
Palindrome
Palindrome
ProblemDescriptionA
palindrome
isasymmetricalstring,thatis,astringreadidenticallyfromlefttorightaswellasfromrighttoleft.Youaretowriteaprogramwhich
大烁就是要吃肉
·
2016-10-30 16:29
ACM
DP
(DP)LCS与LIS
Longest
Palindrome
(计算可由一个字符串中数字字符构成的最长回文数的长度)
Givenastringwhichconsistsoflowercaseoruppercaseletters,findthelengthofthelongest
palindrome
sthatcanbebuiltwiththoseletters.Thisiscasesensitive
xiangwanpeng
·
2016-10-28 11:00
LeetCode
算法
Hashtable
Palindrome
Number
题目——
Palindrome
NumberDeterminewhetheranintegerisa
palindrome
.Dothiswithoutextraspace.Somehints:Couldnegativeintegersbe
palindrome
s
秋名山菜车手
·
2016-10-13 23:58
Palindrome
Number
这题好简单publicclassSolution{publicbooleanis
Palindrome
(intx){if(xnumber=newArrayList();while(x>=10){number.add
chenatu
·
2016-10-13 00:00
leetcode
Leetcode 5. Longest Palindromic Substring
我的解法是以每个字符为中心进行两侧试探,或者以每两个相邻字符为中心进行两侧试探publicclassSolution{publicStringlongest
Palindrome
(Strings){intmaxI
chenatu
·
2016-10-10 00:00
leetcode
Longest
Palindrome
题目链接:https://leetcode.com/contest/7/problems/longest-
palindrome
/题目:Givenastringwhichconsistsoflowercaseoruppercaseletters
yeqiuzs
·
2016-10-02 13:00
LeetCode
Shortest
Palindrome
问题描述GivenastringS,youareallowedtoconvertittoa
palindrome
byaddingcharactersinfrontofit.Findandreturntheshortest
palindrome
youcanfindbyperformingthistransformation.Forexample
codingXue
·
2016-09-30 11:02
【网络赛前必刷题】杭电 2029 回文串判定
Palindrome
s_easyversionTimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission
Alternative_19
·
2016-09-28 12:46
各类error
杭电
2016.9
最长回文字串(Manacher算法)
classSolution{public:stringlongest
Palindrome
(strings){if(s.empty()||s.size()==1)returns;intstrLen=s.size
happylife39
·
2016-09-27 20:13
算法与数据结构
LeetCode 234
Palindrome
Linked List(回文链表)(*)
原文Givenasinglylinkedlist,determineifitisa
palindrome
.Followup:CouldyoudoitinO(n)timeandO(1)space?
NoMasp
·
2016-09-25 13:00
LeetCode
链表
栈
单链表
234
Valid
Palindrome
Givenastring,determineifitisa
palindrome
,consideringonlyalphanumericcharactersandignoringcases.Forexample
exialym
·
2016-09-21 22:42
leetcode-009-
Palindrome
Number
P009
Palindrome
Number思路分析代码javapythonP009
Palindrome
NumberDeterminewhetheranintegerisa
palindrome
.Dothiswithoutextraspace
hylexus
·
2016-09-21 01:00
LeetCode
palindrome
5. Longest Palindromic Substring
dynamicprogrammingsolutionclassSolution(object):deflongest
Palindrome
(self,s):""":types:str:rtype:str"
阿团相信梦想都能实现
·
2016-09-14 05:48
【Leetcode】Shortest
Palindrome
题目链接:https://leetcode.com/problems/shortest-
palindrome
/题目:GivenastringS,youareallowedtoconvertittoa
palindrome
byaddingcharactersinfrontofit.Findandreturntheshortest
palindrome
youcanfindbyperformingthist
yeqiuzs
·
2016-09-13 15:00
LeetCode
scala-Problem06-10
P06Findoutwhetheralistisa
palindrome
要求方案P07Flattenanestedliststructure要求方案P08Eliminateconsecutiveduplicatesoflistelements
hylexus
·
2016-09-13 14:00
scala
map
recursive
fold
Palindrome
Linked List 回文链表 Java
Givenasinglylinkedlist,determineifitisa
palindrome
.Followup:CouldyoudoitinO(n)timeandO(1)space?
DuanLiuchang
·
2016-09-04 13:18
LeetCode
Palindrome
Linked List 回文链表 Java
Givenasinglylinkedlist,determineifitisa
palindrome
.Followup:CouldyoudoitinO(n)timeandO(1)space?
DuanLiuchang
·
2016-09-04 13:00
java
LeetCode
li
linked
palindrome
快慢指针
回文链表
回文串
输出描述:输出答案(YES\NO).输入例子:coco输出例子:YES代码:importjava.util.Scanner; publicclass
Palindrome
{ publicstaticvoidmain
csulfy
·
2016-08-30 15:00
java
编程
LIGHT OJ 1225 - Palindromic Numbers (II)【回文数】
PalindromicNumbers(II)PDF(English)StatisticsForumTimeLimit:0.5second(s)MemoryLimit:32MBApalindromicnumberornumeral
palindrome
isa'symmetrical'numberlike16461
DTL66
·
2016-08-25 20:17
小数学
暑假集训
常见错误
POJ-1159
Palindrome
(dp+滚动数组节省内存)
题目链接:点击打开链接题意:这道题是说给你一个字符串,让你求最少添加多少个新字符,可以使该字符串变成回文串。思路:本题关键要了解的一点就是,最少要添加的字符数=该字符串的长度-该字符串的逆序与该字符串的最长公共子序列。剩下的就是求最长公共子序列问题了,本来是道很基础的题目,但又有新的问题就是dp[5000][5000]的静态数组占用内存太大了,会MLE。这里采取的办法是求余滚动数组,把数组压缩到2
JOKER_SAMA
·
2016-08-18 10:29
poj
初级算法
Shortest
Palindrome
GivenastringS,youareallowedtoconvertittoa
palindrome
byaddingcharactersinfrontofit.Findandreturntheshortest
palindrome
youcanfindbyperformingthistransformation.Forexample
hhboboy
·
2016-08-17 21:00
Palindrome
Linked List 链表
234.
Palindrome
LinkedListGivenasinglylinkedlist,determineifitisa
palindrome
.Followup:CouldyoudoitinO(n)
313119992
·
2016-08-12 20:57
链表
leetCode练习
Valid
Palindrome
字符串
125.Valid
Palindrome
Givenastring,determineifitisa
palindrome
,consideringonlyalphanumericcharactersandignoringcases.Forexample
313119992
·
2016-08-11 13:36
字符串
leetCode练习
Palindrome
Linked List -判断链表是否为回文序列
快慢指针法找到链表中点http://blog.csdn.net/vlin_hao/article/details/52087367将后半段链表反转*head*pre*cur两个指针逐个比较
Vlin_Hao
·
2016-08-02 09:00
LeetCode
链表
快慢指针
Manacher算法--求最长回文子串
那么str就是string的回文子串;引出问题要求求出上面string中最长的那个回文子串;解决方案方案一:枚举中心位置,对奇数位串和偶数位串分开处理;intAllAlgorithms::longest
Palindrome
eternity1118_
·
2016-08-01 11:15
C/C++
#
数据结构与算法
算法面试
hdu5760
Palindrome
Bo
链接:http://acm.hdu.edu.cn/showproblem.php?pid=5760题意:给定一个n个元素的数组,求最长的回文子序列并且要求从中间到两边是非递减的,要求输出长度和有多少个本质不同的最长的回文子序列。分析:如果只是要求长度,这题的难度要小好多,直接用a数组和a的逆数组求最长公共不上升子序列即可,有兴趣的可以自己去找题做做。但是这题还要求输出有多少个本质不同的子序列,我是
Fsss_7
·
2016-07-29 17:06
online
judge
Hdu
动态规划
区间dp
s-
palindrome
D-s-
palindrome
Crawlinginprocess...CrawlingfailedTimeLimit:1000MSMemoryLimit:262144KB64bitIOFormat:%I64d
JasonChen_ACM
·
2016-07-16 11:25
ACM:水题
【Leetcode】
Palindrome
Pairs
题目链接:https://leetcode.com/problems/
palindrome
-pairs/题目:Givenalistofuniquewords.Findallpairsof distinct
yeqiuzs
·
2016-07-09 17:00
Valid
Palindrome
本系列文章已全部上传至我的github,地址:ZeeCoder‘sGithub欢迎大家关注我的新浪微博,我的新浪微博欢迎转载,转载请注明出处(一)题目Givenastring,determineifitisa
palindrome
terence1212
·
2016-07-07 20:00
LeetCode
github
String
LeetCode Palindrom Number
********************************************************************* **Determinewhetheranintegerisa
palindrome
.Dothiswithoutextras
taoyanqi8932
·
2016-07-06 15:00
HDU2029
Palindrome
s _easy version
问题链接:HDU2029
Palindrome
s_easyversion。入门训练题,用C语言编写程序。不知道字符串有多长,就把字符数组定义的大一些。
tigerisland45
·
2016-07-05 23:00
回文
Palindromes
HDU2029
687D: Dividing Kingdom II
B.Lovely
Palindrome
stimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputParihasafriendwholoves
palindrome
numbers.Apalindr
tigerisland45
·
2016-07-03 06:00
687D
688B: Lovely
Palindrome
s
B.Lovely
Palindrome
stimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputParihasafriendwholoves
palindrome
numbers.Apalindr
tigerisland45
·
2016-07-01 12:00
Palindromes
688B
Lovely
Palindrome
s 水题
B.Lovely
Palindrome
s题目连接:http://www.codeforces.com/contest/688/problem/BDescriptionParihasafriendwholoves
palindrome
numbers.A
palindrome
numberisanumberthatreadsthesameforwardorbackward.Forexample12321,10
qscqesze
·
2016-06-30 20:00
Valid
Palindrome
***********************************************************************Givenastring,determineifitisa
palindrome
taoyanqi8932
·
2016-06-30 15:00
LeetCode
Palindrome
Partitioning II
Givenastrings,partitionssuchthateverysubstringofthepartitionisa
palindrome
.Returntheminimumcutsneededfora
palindrome
partitioningofs.Forexample
HalcyonMoon
·
2016-06-29 11:56
Valid
Palindrome
/*leetcode125.Valid
Palindrome
题目大意:判断一句话时候为回文,只考虑字母,忽略大小写。
charles1e
·
2016-06-24 15:00
LeetCode
Java实验(3) 回文素数
1、本题主要变量的功能:count1:记录一行已经输出了几个,实现每行输出10个,整型,初始值为0;count2:记录已经输出回文素数个数,直到输出100个,整型,初始值为1;is
Palindrome
s
坚强的花菜
·
2016-06-24 14:56
Java实验
Palindrome
Partitioning II
题目描述:Givenastrings,partitionssuchthateverysubstringofthepartitionisa
palindrome
.Returntheminimumcutsneededfora
palindrome
partitioningofs.Forexample
yeshiwu
·
2016-06-23 21:00
java
LeetCode
动态规划
Palindrome
Linked List
代码如下:boolis
Palindrome
(List
okiwilldoit
·
2016-06-16 14:00
【Leetcode】
Palindrome
Partitioning II
题目链接:https://leetcode.com/problems/
palindrome
-partitioning-ii/题目:Givenastrings,partitionssuchthateverysubstringofthepartitionisa
palindrome
.Returntheminimumcutsneededfora
palindrome
partitioningofs.Forex
yeqiuzs
·
2016-06-11 10:00
LeetCode
【Leetcode】
Palindrome
Partitioning
题目链接:https://leetcode.com/problems/
palindrome
-partitioning/题目:Givenastring s,partition s suchthateverysubstringofthepartitionisa
palindrome
.Returnallpossible
palindrome
partitioningof
yeqiuzs
·
2016-06-11 00:00
Palindrome
Number
题目描述:Determinewhetheranintegerisa
palindrome
.Dothiswithoutextraspace.不适用额外的空间,就是不能使用数组,也不能使用字符串了。
yeshiwu
·
2016-06-07 08:00
java
Math
LeetCode
【Leetcode】
Palindrome
Number
题目链接:https://leetcode.com/problems/
palindrome
-number/题目:Determinewhetheranintegerisa
palindrome
.Dothiswithoutextraspace.Somehints
yeqiuzs
·
2016-06-06 20:00
【Leetcode】Valid
Palindrome
题目链接:https://leetcode.com/problems/valid-
palindrome
/题目:Givenastring,determineifitisa
palindrome
,consideringonlyalphanumericcharactersandignoringcases.Forexample
yeqiuzs
·
2016-06-05 19:00
LeetCode:Valid
Palindrome
Valid
Palindrome
TotalAccepted: 103983 TotalSubmissions: 432738 Difficulty: EasyGivenastring,determineifitisa
palindrome
itismelzp
·
2016-06-05 10:00
LeetCode
String
Two
Pointers
HDOJ/HDU 2163
Palindrome
s(判断回文串~)
ProblemDescriptionWriteaprogramtodeterminewhetherawordisa
palindrome
.A
palindrome
isasequenceofcharactersthatisidenticaltothestringwhenthecharactersareplacedinreverseorder.Forexample
qq_26525215
·
2016-06-05 00:00
java
ACM
回文串
Valid
Palindrome
125.Valid
Palindrome
Givenastring,determineifitisa
palindrome
,consideringonlyalphanumericcharactersandignoringcases.Forexample
NNNNNNNNNNNNY
·
2016-06-01 11:00
上一页
55
56
57
58
59
60
61
62
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他