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
LeetCode 第 9 题(
Palindrome
Number)
LeetCode第9题(
Palindrome
Number)Determinewhetheranintegerisa
palindrome
.Dothiswithoutextraspace.Somehints
liyuanbhu
·
2016-04-18 13:00
LeetCode
Palindrome
Permutation
Thisproblemcurrentlyhasalock.....SearchitonGooglethen.....Problem:Givenastring,determineifapermutationofthestringcouldforma
palindrome
.Forexample
github_34333284
·
2016-04-17 07:00
HDU 5157 Harry and magic string
ProblemDescriptionHarrygotastringT,hewantedtoknowthenumberofT’sdisjoint
palindrome
substringpairs.Astringisconsideredtobe
palindrome
ifandonlyifitreadsthesamebackwardorforward.Fortwosubstringsof
jtjy568805874
·
2016-04-15 21:00
HDU
最长公共子序列 & 最长不减(不增)子序列-例题题解
Poj1159
Palindrome
TimeLimit: 3000MS MemoryLimit: 65536KTotalSubmissions: 58763 Accepted: 20419DescriptionA
palindrome
isasymmetricalstring
sinat_19628145
·
2016-04-15 13:00
Valid
Palindrome
Givenastring,determineifitisa
palindrome
,consideringonlyalphanumericcharactersandignoringcases.Forexample
Xd_Yu
·
2016-04-15 12:00
LeetCode
LeetCode(61)-Valid
Palindrome
题目:Givenastring,determineifitisa
palindrome
,consideringonlyalphanumericcharactersandignoringcases.
u010321471
·
2016-04-15 11:00
LeetCode
算法
面试
valid
palindrome
LeetCode——009
//题目 9.
Palindrome
NumberMySubmissionsQuestionEditorialSolution TotalAccepted:118235TotalSubmissions:375373Difficulty
langmanqishizaijia
·
2016-04-14 22:00
LeetCode
[C语言][LeetCode][234]
Palindrome
Linked List
题目
Palindrome
LinkedListGivenasinglylinkedlist,determineifitisa
palindrome
.Followup:CouldyoudoitinO(n)timeandO
Timsley
·
2016-04-14 21:00
LeetCode
C语言
LeetCode代码分析——5. Longest Palindromic Substring
只不是TimeOut233333publicclassSolution{ publicStringlongest
Palindrome
(Strings){ Stringstr=null; intmaxSize
huanglong0438
·
2016-04-14 20:00
LeetCode(55)-
Palindrome
Linked List
题目:Givenasinglylinkedlist,determineifitisa
palindrome
.
u010321471
·
2016-04-14 10:00
LeetCode
算法
面试
LinkedList
palindrome
HDU 5394 Trie in Tina Town
ProblemDescriptionTinaTownisafriendlyplace.Peopletherecareabouteachother.AtriewhichwasplantedbythefirstmayorofTinaTowngrowsinthecenterofthetown.Wedefinea
palindrome
substringinatrieastringthatisasuffixo
jtjy568805874
·
2016-04-13 21:00
HDU
添加回文串
class
Palindrome
{ public: bool
a342500329a
·
2016-04-13 21:00
HDU 5658 CA Loves Palindromic
ProblemDescriptionCAlovesstrings,especiallylovesthe
palindrome
strings.Onedayhegetsastring,hewantstoknowhowmanypalindromicsubstringsinthesubstring
jtjy568805874
·
2016-04-13 14:00
HDU
URAL 1960
Palindrome
s and Super Abilities
DescriptionAftersolvingsevenproblemsonTimusOnlineJudgewithaword“
palindrome
”intheproblemname,Mishahasgotanunusualability.Now
jtjy568805874
·
2016-04-13 13:00
ural
【面试笔试算法】Problem 9: 腾讯2016年研发实习笔试题:最长回文子串
(一)题目问题:求给定字符串s的回文(
palindrome
)子串中,长度最大的回文子串的长度。回文(
palindrome
)是指从左往右读和从右往左读字符串,看到的字符串都是一样的。
terence1212
·
2016-04-12 16:00
算法
面试
腾讯
【poj 3280】 Cheapest
Palindrome
题意&题解&代码(C++)
题目链接:http://poj.org/problem?id=3280题意:给出一个字符串,要求将其修改成一个回文字符串,给出修改某种字母(添加或删除)的价值,求最小使其成为回文字符串的价值。题解:感觉是求最长回文子序列的变形,然而刚开始想着用类似于求最长回文子序列的方法,将字符串反转后与原字符串匹配最长公共子序列,在匹配的过程中来进行dp转移,但发现这样不行,因此还是借鉴了网上的方法用dp[i]
DERITt
·
2016-04-12 15:00
dp
poj
笔试题22. LeetCode OJ (9)
classSolution{ public: boolis
Palindrome
(intx){ if(x<0) {//负数不是回文数 returnfalse; } inttmp=x; intret=0;
zr1076311296
·
2016-04-12 13:00
LeetCode
[数据结构-hash]CF 7D
Palindrome
Degree
D.
Palindrome
Degree timelimitpertest1second Stringsoflengthniscalledk-
palindrome
,ifitisa
palindrome
(回文
reborn_ZhMZ
·
2016-04-12 12:00
Palindrome
Linked List
Givenasinglylinkedlist,determineifitisa
palindrome
.Followup:CouldyoudoitinO(n)timeandO(1)space?
github_34333284
·
2016-04-12 08:00
[poj 3280] Cheapest
Palindrome
dp
Cheapest
Palindrome
TimeLimit:2000MSMemoryLimit:65536KTotalSubmissions:7884Accepted:3822DescriptionKeepingtrackofallthecowscanbeatrickytasksoFarmerJohnhasinstalledasystemtoautomateit.Hehasinstalledoneac
ALPS233
·
2016-04-11 16:00
dp
poj
[poj 3280] Cheapest
Palindrome
dp
Cheapest
Palindrome
TimeLimit:2000MSMemoryLimit:65536KTotalSubmissions:7884Accepted:3822DescriptionKeepingtrackofallthecowscanbeatrickytasksoFarmerJohnhasinstalledasystemtoautomateit.Hehasinstalledoneac
ALPS233
·
2016-04-11 16:00
dp
poj
Palindrome
Number[E]——回文数字
009.
Palindrome
Number[E]
Palindrome
NumberE问题思路思路1思路2问题:Determinewhetheranintegerisa
palindrome
.Dothiswithoutextraspace
hk2291976
·
2016-04-11 15:00
LeetCode
回文数
【LeetCode】
Palindrome
Number
9.
Palindrome
NumberTotalAccepted:117430TotalSubmissions:373389Difficulty:EasyDeterminewhetheranintegerisa
palindrome
.Dothiswithoutextraspace.clicktoshowspoilers.Somehints
SDUTACM
·
2016-04-10 21:00
POJ3974
Palindrome
题意:求一个长度为n(n"*a*b*a*b*a*".2.定义p数组,p(i)表示以i为中心最长回文串的半径。3.定义mx,表示已经求得的i+p(i)-1的最大值。4.定义id,表示i+p(i)-1取到mx时的i值,即id+p(id)-1=mx.5.枚举i值,计算相应的p值,分mx>i和mx #include #include constintmaxn=1000005; charc[maxn],c
Monster__Yi
·
2016-04-09 12:00
字符串
模板
manacher算法
《leetCode》:
Palindrome
Linked List
题目Givenasinglylinkedlist,determineifitisa
palindrome
.Followup:CouldyoudoitinO(n)timeandO(1)space?
u010412719
·
2016-04-08 19:00
LeetCode
链表
palindrome
lightoj 1033 - Generating
Palindrome
s(区间dp)
1033-Generating
Palindrome
s PDF(English)StatisticsForumTimeLimit: 2second(s)MemoryLimit: 32MBBydefinition
palindrome
isastringwhichisnotchangedwhenreversed
dml_96
·
2016-04-07 22:00
LeetCode(34)-
Palindrome
Number
题目:Determinewhetheranintegerisa
palindrome
.Dothiswithoutextraspace.思路:求一个整数是不是回文树。
u010321471
·
2016-04-07 22:00
LeetCode
算法
面试
number
palindrome
USACO 1.5-Prime
Palindrome
s
/* ID:m1590291 TASK:pprime LANG:C++ */ #include usingnamespacestd; /****************************************************************************************************************** 题意并不难理解,函数简单。然后做了
qq_28300479
·
2016-04-06 23:00
判断回文链表
Palindrome
LinkedList TotalAccepted: 5991 TotalSubmissions: 25994MySubmissionsGivenasinglylinkedlist,determineifitisa
palindrome
.Followup
ouyangjinbin
·
2016-04-06 15:00
算法
leetcode——9——
Palindrome
Number
Determinewhetheranintegerisa
palindrome
.Dothiswithoutextraspace.classSolution{ public: boolis
Palindrome
happyxuma1991
·
2016-04-06 14:00
LeetCode
算法题
LeetCode之9---
Palindrome
Number
题目:Determinewhetheranintegerisa
palindrome
.Dothiswithoutextraspace.题目大意:判断一个数字是不是回文数,要求不是用额外的空间。
Jung_zhang
·
2016-04-05 22:00
LeetCode
算法
LeetCode之9---
Palindrome
Number
题目:Determinewhetheranintegerisa
palindrome
.Dothiswithoutextraspace.题目大意:判断一个数字是不是回文数,要求不是用额外的空间。
Jung_zhang
·
2016-04-05 22:00
LeetCode
算法
leetcode-09-
Palindrome
Number
classSolution(object): defis
Palindrome
(self,x): """:typex:int:rtype:bool""" b=x ifx=2147483648:returnFalse
summerdj
·
2016-04-05 21:00
Palindrome
Number
一天一道LeetCode系列(一)题目Determinewhetheranintegerisa
palindrome
.Dothiswithoutextraspace.Somehints:Couldnegativeintegersbe
palindrome
s
terence1212
·
2016-04-05 15:00
LeetCode
USACO 1.2-Dual
Palindrome
s
/* ID:m1590291 TASK:dualpal LANG:C++ */ #include #include usingnamespacestd; ifstreamfin("dualpal.in"); ofstreamfout("dualpal.out"); constchara[]={'0','1','2','3','4','5','6','7','8','9'}; intn,m; boo
qq_28300479
·
2016-04-04 22:00
Palindrome
Number
Determinewhetheranintegerisa
palindrome
.Dothiswithoutextraspace.boolis
Palindrome
(intx){ longlongintxx=
u014568921
·
2016-04-04 12:00
LeetCode
[LeetCode 267]
Palindrome
Permutation II
Givenastring s,returnallthepalindromicpermutations(withoutduplicates)ofit.Returnanemptylistifnopalindromicpermutationcouldbeform.Forexample:Given s="aabb",return ["abba","baab"].Given s="abc",return [
sbitswc
·
2016-04-04 08:00
LeetCode
permutation
palindrome
[Leetcode 266]
Palindrome
Permutation
Givenastring,determineifapermutationofthestringcouldforma
palindrome
.Forexample,"code" ->False, "aab"
sbitswc
·
2016-04-04 06:00
LeetCode
HashMap
bit
manipulation
hdoj 2029
Palindrome
s _easy version (字符串)
Palindrome
s_easyversionTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission
bmicnj
·
2016-04-03 14:00
CodeForces 17E Palisection
DescriptionInanEnglishclassNickhadnothingtodoatall,andrememberedaboutwonderfulstringscalled
palindrome
s.Weshouldremindyouthatastringiscalleda
palindrome
ifitcanbereadthesamewaybothfromlefttorightandfrom
jtjy568805874
·
2016-04-03 14:00
codeforces
【LeetCode】
Palindrome
Pairs(336)
DescriptionGivenalistofuniquewords.Findallpairsofdistinctindices(i,j)inthegivenlist,sothattheconcatenationofthetwowords,i.e.words[i]+words[j]isa
palindrome
.Example1
leesf
·
2016-04-03 14:00
Palindrome
Number
链接Leetcode题目:https://leetcode.com/problems/
palindrome
-number/Github代码:https://github.com/gatieme/LeetCode
gatieme
·
2016-04-02 23:00
LeetCode
算法
面试
回文
palindrome
leetcode——125——Valid
Palindrome
Givenastring,determineifitisa
palindrome
,consideringonlyalphanumericcharactersandignoringcases.Forexample
happyxuma1991
·
2016-04-02 11:00
LeetCode
算法题
leetcode-05- Longest Palindromic Substring-python
classSolution(object): deflongest
Palindrome
(self,s): maxlen=0 iflen(s)==1: return1 else:
summerdj
·
2016-03-31 16:00
Light Oj 1044 -
Palindrome
Partitioning(回文串)
problem=10441044-
Palindrome
PartitioningA
palindrome
partitionisthepartitioningofastringsuchthateachseparatesubstringisa
palindrome
.Forexample
w144215160044
·
2016-03-30 21:00
Palindrome
Number回文数判断
题目: Determinewhetheranintegerisa
palindrome
.Dothiswithoutextraspace.理解: 在不额外使用空间的情况下判断一个数是否为回文数
tmylzq187
·
2016-03-30 20:00
【poj 1159】
Palindrome
题意&题解&代码(C++)
题目链接:http://poj.org/problem?id=1159题意:给出一个长为n的字符串,求最少添加几个字符可以将这个字符串变为回文字符串。题解:要把这个串变为回文串,很容易想到从串中间往两边暴力比较左右字符是否相等,发现两边字符不相等就添加,换句话说就是求这两边的字符串的最长公共子序列的长度,求出之后用长度减掉(2×长度+1)即为答案,但这样似乎有些麻烦,进一步想到串左半部分与右半部分
deritt
·
2016-03-30 20:08
oi之路
poj
DERIT的博客专栏
【poj 1159】
Palindrome
题意&题解&代码(C++)
题目链接:http://poj.org/problem?id=1159题意:给出一个长为n的字符串,求最少添加几个字符可以将这个字符串变为回文字符串。题解:要把这个串变为回文串,很容易想到从串中间往两边暴力比较左右字符是否相等,发现两边字符不相等就添加,换句话说就是求这两边的字符串的最长公共子序列的长度,求出之后用长度减掉(2×长度+1)即为答案,但这样似乎有些麻烦,进一步想到串左半部分与右半部分
deritt
·
2016-03-30 20:08
oi之路
poj
DERIT的博客专栏
【poj 1159】
Palindrome
题意&题解&代码(C++)
题目链接:http://poj.org/problem?id=1159题意:给出一个长为n的字符串,求最少添加几个字符可以将这个字符串变为回文字符串。题解:要把这个串变为回文串,很容易想到从串中间往两边暴力比较左右字符是否相等,发现两边字符不相等就添加,换句话说就是求这两边的字符串的最长公共子序列的长度,求出之后用长度减掉(2×长度+1)即为答案,但这样似乎有些麻烦,进一步想到串左半部分与右半部分
DERITt
·
2016-03-30 20:00
dp
poj
【poj 1159】
Palindrome
DP(类最长公共子序列)+滚动数组
Palindrome
TimeLimit:3000MSMemoryLimit:65536KTotalSubmissions:58492Accepted:20318DescriptionA
palindrome
isasymmetricalstring
ALPS233
·
2016-03-30 20:41
dp
poj
刷题记录
上一页
58
59
60
61
62
63
64
65
下一页
按字母分类:
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
其他