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 -
Palindrome
Partition
Given a string s, partition s such that every substring of the partition is a
palindrome
likesky3
·
2015-05-21 09:00
partition
[LeetCode]Valid
Palindrome
Givenastring,determineifitisa
palindrome
,consideringonlyalphanumericcharactersandignoringcases.Forexample
CiaoLiang
·
2015-05-21 09:00
LeetCode 题解(90):
Palindrome
Partitioning II
题目:Givenastring s,partition s suchthateverysubstringofthepartitionisa
palindrome
.Returntheminimumcutsneededfora
palindrome
partitioningof
u011029779
·
2015-05-21 01:00
Algorithm
LeetCode
面试题
Longest Palindromic Substring-Dynamic Programing
findthelongestpalindromicsubstringinS.Analysis:Firstthinkhowwecanavoidunnecessaryre-computationinvalidating
palindrome
s.Considerthecase"ababa
lxw0109
·
2015-05-20 09:00
UVA 401
Palindrome
s(回文词)
回文词TimeLimit:3000MS MemoryLimit:0KB 64bitIOFormat:%lld&%lluSubmit Status Practice UVA401Appointdescription: acmparand (2013-07-07)Luke (2014-01-20)SystemCrawler (2015-05-10)DescriptionAregu
bao_libra
·
2015-05-15 20:00
LeetCode Valid
Palindrome
题目Givenastring,determineifitisa
palindrome
,consideringonlyalphanumericcharactersandignoringcases.Forexample
xyzchenzd
·
2015-05-15 10:00
LeetCode
C++
算法
LeetCode 9 -
Palindrome
Number
一、问题描述Description:Determinewhetheranintegerisa
palindrome
.Dothiswithoutextraspace.判断一个整数是否是回文数,不要使用额外的空间
lisong694767315
·
2015-05-13 22:00
LeetCode
回文数
Manacher算法--O(n)回文子串算法
原文地址:http://zhuhongcheng.wordpress.com/2009/08/02/a-simple-linear-time-algorithm-for-finding-longest-
palindrome
kl28978113
·
2015-05-13 10:00
LeetCode(
Palindrome
Partitioning)
Palindrome
Partitioning深搜一:classSolution{ public: vector>partition(strings){ vector>result; vectorpath
hz5034
·
2015-05-11 16:00
Valid
Palindrome
Givenastring,determineifitisa
palindrome
,consideringonlyalphanumericcharactersandignoringcases.Forexample
ColorlessSilver
·
2015-05-10 17:37
算法
leetcode
[LeetCode] Valid
Palindrome
Givenastring,determineifitisa
palindrome
,consideringonlyalphanumericcharactersandignoringcases.Forexample
wangshaner1
·
2015-05-07 14:00
LeetCode
C++
LeetCode (30)
Palindrome
Number (回文数字)
题目描述Determinewhetheranintegerisa
palindrome
.Dothiswithoutextraspace.Somehints:Couldnegativeintegersbe
palindrome
s
angelazy
·
2015-05-07 13:00
LeetCode
C++
算法
Palindrome
Number ——解题笔记
【题目】 Determinewhetheranintegerisa
palindrome
.Dothiswithoutextraspace.clicktoshowspoilers.Somehints:Couldnegativeintegersbe
palindrome
s
puqutogether
·
2015-05-06 10:00
LeetCode
回文
palindrome
Leetcode#125Valid
Palindrome
Valid
Palindrome
TotalAccepted: 50466 TotalSubmissions: 227908MySubmissionsQuestion Solution Givenastring
谧晦
·
2015-05-05 21:25
example
Question
determine
Leetcode#9
Palindrome
Number
Palindrome
Number TotalAccepted: 54885 TotalSubmissions: 185086MySubmissionsQuestion Solution Determinewhetheranintegerisa
palindrome
.Dothiswithoutextraspace.clicktoshowspoilers.Somehints
谧晦
·
2015-05-05 20:46
problem
Without
whether
solved
POJ - 1159 -
Palindrome
(LCS + 优化)
题目传送:
Palindrome
思路:一看题目思路很清晰,就是求出字符串s和倒转s后的字符串t的最长公共子序列,但是一看空间开销有点大,如果开int就会爆,5000*5000有100MB了,这里可以开short
u014355480
·
2015-05-04 21:00
dp
ACM
poj
lcs
2015 ACM Arabella Collegiate Programming Contest(F题)
F.
Palindrome
[Color:Pink]Astringis
palindrome
ifitcanbereadthesamewayineitherdirection,forexample“maram”
jhgkjhg_ugtdk77
·
2015-05-04 14:00
Algorithm
ACM
并查集
codeforces
Palindrome
Partitioning II
Givenastrings,partitionssuchthateverysubstringofthepartitionisa
palindrome
.Returntheminimumcutsneededfora
palindrome
partitioningofs.Forexample
brucehb
·
2015-05-04 02:00
Palindrome
Partitioning
Givenastrings,partitionssuchthateverysubstringofthepartitionisa
palindrome
.Returnallpossible
palindrome
partitioningofs.Forexample
brucehb
·
2015-05-04 01:00
leetcode--Longest Palindromic Substring
findthelongestpalindromicsubstringinS.YoumayassumethatthemaximumlengthofSis1000,andthereexistsoneuniquelongestpalindromicsubstring.publicclassSolution{ publicStringlongest
Palindrome
kangaroo835127729
·
2015-05-03 08:00
Palindrome
Number
Determinewhetheranintegerisa
palindrome
.Dothiswithoutextraspace.clicktoshowspoilers.Somehints:Couldnegativeintegersbe
palindrome
s
summer_liuwei
·
2015-05-02 21:00
LeetCode Valid
Palindrome
1.题目Givenastring,determineifitisa
palindrome
,consideringonlyalphanumericcharactersandignoringcases.Forexample
fox64194167
·
2015-05-01 17:00
hdu1513
Palindrome
坑爹啊!!!!!!!!!!!!!!!!多组输入不说啊!!!!!!!!!!!!!!!!!!!!!!!明明我是一次AC啊!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!好吧以上就是要注意的地方,接下来说说怎么做,主要还是dp,但是有两种思路:(1)dp[i][j]表示i到j最少插入数,那么递推方程就是:if(s[i]==s[j])dp[i][j]=dp[i+1][j-1];elsed
the301stdoub
·
2015-04-30 22:00
leetcode || 132、
Palindrome
Partitioning II
problem:Givenastring s,partition s suchthateverysubstringofthepartitionisa
palindrome
.Returntheminimumcutsneededfora
palindrome
partitioningof
hustyangju
·
2015-04-29 09:00
LeetCode
String
动态规划
回文字符串
LeetCode(9)
Palindrome
Number
题目:Determinewhetheranintegerisa
palindrome
.Dothiswithoutextraspace.Somehints:Couldnegativeintegersbe
palindrome
s
fly_yr
·
2015-04-28 21:00
LeetCode
C++
leetcode ||131、
Palindrome
Partitioning
problem:Givenastring s,partition s suchthateverysubstringofthepartitionisa
palindrome
.Returnallpossible
palindrome
partitioningof
hustyangju
·
2015-04-28 17:00
LeetCode
substring
回溯
回文字符串
最长回文子串
classSolution{ public: stringlongest
Palindrome
(strings){ intlen=s.size(); stringlongest=""; for(inti=
liu1137537275
·
2015-04-28 09:00
leetcode || 125、Valid
Palindrome
problem:Givenastring,determineifitisa
palindrome
,consideringonlyalphanumericcharactersandignoringcases.Forexample
hustyangju
·
2015-04-27 15:00
LeetCode
String
回文字符串
双指针
面试杂谈
判断一个数据是否是回文publicbooleanis
Palindrome
(intx) { if(x<0) { returnfalse; }
usench
·
2015-04-23 13:00
java
Chang'an(
Palindrome
Numbers-回文数字统计)
统计前半个回文串#include usingnamespacestd; #defineFor(i,n)for(inti=1;i=k;i--) #defineRep(i,n)for(inti=0;ip) { t++; n-=p; if(t>=3&&t%2==1) { p*=10; } } intlen=t/2+t%2; //cout<
nike0good
·
2015-04-23 11:00
POJ 1159【
Palindrome
】
DescriptionA
palindrome
isasymmetricalstring,thatis,astringreadidenticallyfromlefttorightaswellasfromrighttoleft.Youaretowriteaprogramwhich
u012970471
·
2015-04-21 15:00
Cheapest
Palindrome
.(POJ-3280)
经典DP。影响决策的是字符串的内容。而添加和删除字符本质上是一样的,我们不管选择哪一种都可以,所以只需要取两者中费用最小的。状态转移方程就是:if(s[i]==s[j])dp[i][j]=dp[i+1][j-1]; elsedp[i][j]=min(dp[i+1][j]+w[s[i]-'a'],dp[i][j-1]+w[s[j]-'a']);其中dpd[i][j]表示从字符串的i-j段为回文
weizhuwyzc000
·
2015-04-20 17:00
ACM
poj
LeetCode 9
Palindrome
Number 回文数字
题目:Determine whether an integer is a
palindrome
. Do this without extra space.
vvaaiinn
·
2015-04-20 14:00
LeetCode
最长回文子串[中心扩展思想]
#include #include usingnamespacestd; stringfindLongest
Palindrome
(string&s) { intlength=s.size(); intmaxlength
wtyvhreal
·
2015-04-19 20:00
回文
最长回文子串
中心扩展
回文串问题
Palindrome
s_easyversionTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission
l15738519366
·
2015-04-19 18:00
【索引】Dynamic Programming::Examples:Beginner
TrainingGuide(RujiaLiu)Chapter1.AlgorithmDesign::DynamicProgramming:Examples:Beginner11584-Partitioningby
Palindrome
s1424
kl28978113
·
2015-04-19 16:00
LeetCode (16) Valid
Palindrome
(回文)
题目描述Givenastring,determineifitisa
palindrome
,consideringonlyalphanumericcharactersandignoringcases.Forexample
angelazy
·
2015-04-18 22:00
LeetCode
C++
算法
hihoCoder求最长回文字符串
publicstaticvoidmain(String[]args){Stringstr=""; Scannerin=newScanner(System.in); intmax=0;//存放最大长度 Stringlongest
Palindrome
sjtu_chenchen
·
2015-04-18 22:00
hihoCoder
Palindrome
Number
Determinewhetheranintegerisa
palindrome
.Dothiswithoutextraspace.代码:classSolution{ public: boolis
Palindrome
tujiaw
·
2015-04-17 15:00
[LeetCode]
Palindrome
Number
Palindrome
NumberDeterminewhetheranintegerisa
palindrome
.Dothiswithoutextraspace.解题思路:思路比较简单,将原来的数求逆数。
wangshaner1
·
2015-04-17 14:00
LeetCode
C++
HDOJ 3948 The Number of
Palindrome
s 回文串自动机
看上去像是回文串自动机的模板题,就来了一发TheNumberof
Palindrome
sTimeLimit:6000/3000MS(Java/Others) MemoryLimit:262144/262144K
u012797220
·
2015-04-17 10:00
poj 1159
Palindrome
最长公共子序列
这道题可以用最长公共子序列写,对于需要插入字符的个数,可以总结出一个公式:所需插入的字符个数=总字符个数-s和s'的最长公共子序列的个数 限制内存是65536k,要是用int开c[5005][5005]的数组会超内存,MLE,看了下别人写的用的short开的那么大的数组,虽然不超内存,但是我觉得short能表示的数在3000多,万一要存入的数是4000多呢,所以我觉得应该用unsig
sinat_22659021
·
2015-04-16 19:00
LeetCode -
Palindrome
Number
LeetCode-
Palindrome
NumberTheproblemisdescribedasfollowing:Determinewhetheranintegerisa
palindrome
.Dothiswithoutextraspace.Somehints
zhangyalin1992
·
2015-04-16 13:00
LeetCode
HDU 1513
Palindrome
【LCS+滚动数组】
Palindrome
TimeLimit:4000/2000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(
hpuhjh
·
2015-04-15 17:00
Palindrome
Partitioning II
Palindrome
PartitioningIIGivenastrings,partitionssuchthateverysubstringofthepartitionisa
palindrome
.Returntheminimumcutsneededfora
palindrome
partitioningofs.Forexample
luxialan
·
2015-04-14 11:00
Palindrome
Partitioning
Palindrome
PartitioningGivenastring s,partition s suchthateverysubstringofthepartitionisa
palindrome
.Returnallpossible
palindrome
partitioningof
luxialan
·
2015-04-14 11:00
Valid
Palindrome
Given a string, determine if it is a
palindrome
, considering only alphanumeric characters and ignoring
·
2015-04-12 16:00
ROM
Beautiful
Palindrome
Number 美丽的回文数 HD 5062
Beautiful
Palindrome
NumberTimeLimit:3000/1500MS(Java/Others) MemoryLimit:32768/32768K(Java/Others
Litter_Limbo
·
2015-04-11 14:00
ACM
HDU
杭电
Palindrome
Number —— Leetcode(再做一遍)
Determinewhetheranintegerisa
palindrome
.Dothiswithoutextraspace.Somehints:Couldnegativeintegersbe
palindrome
s
BlitzSkies
·
2015-04-09 22:00
[ural 1960]
Palindrome
s and Super Abilities
继续练习模版。回文树。。。#include #include #include usingnamespacestd; constintMaxn=100005; charS[Maxn]; intlen[Maxn],ans[Maxn],fail[Maxn]; intson[Maxn][26],n,st,p,c,last,i,t; intnewnode(intx){ len[st]=x; retur
Zeyu_King
·
2015-04-09 20:00
回文树
上一页
79
80
81
82
83
84
85
86
下一页
按字母分类:
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
其他