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
Substring
查看视图创建语句
SELECTREPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(
SUBSTRING
_INDEX
dashu5943
·
2020-08-25 14:35
jsp中c标签长度的判断和截取
30}">${fn:
substring
(taskEntity.taskDesc,0,30)}...${taskEntity.taskDesc}
abd小陈先生
·
2020-08-25 14:21
html
前端
java面试题之coreJava
---恢复内容开始---1.Strings=newString("123456789");System.out.println(s.
substring
(2,6));System.out.println(
di917348
·
2020-08-25 12:32
jsp页面中使用jstl判断长度
jsp页面中使用jstl判断长度在jsp页面中引入c和fn长度大小要使用单引号如果文本内容长度大于315,就只显示315个字符,后面用省略号代替‘315’}">${fn:
substring
(entity.content
Henry__jia
·
2020-08-25 12:53
java
jsp
647. 回文子串_动态规划
classSolution(object):defcount
Substring
s(self,s):""":types:str:rtype:int"""res=[None]*len(s)count=0foriinrange
抬头仰望-y
·
2020-08-25 11:08
编程题
647. 回文子串/C++
双指针classSolution{public:intnum=0;intcount
Substring
s(strings){for(inti=0;i=0&&end<s.size()&&s[start
Zolewit
·
2020-08-25 11:47
双指针
LeetCode/C++
647. 回文子串
题目链接:https://leetcode-cn.com/problems/palindromic-
substring
s/description/基于动态规划-1这题基于动态规划的思想来解答的话,实现思想参考自
OneDeveloper
·
2020-08-25 11:12
LeetCode
渣渣的算法历练之路
Palindromic
Substring
s 回文子串
给定一个字符串,你的任务是计算这个字符串中有多少个回文子串。具有不同开始位置或结束位置的子串,即使是由相同的字符组成,也会被视作不同的子串。示例1:输入:"abc"输出:3解释:三个回文子串:"a","b","c"示例2:输入:"aaa"输出:6解释:6个回文子串:"a","a","a","aa","aa","aaa"提示:输入的字符串长度不会超过1000。暴力枚举首先想到的就是枚举所有的子串,然
Alex 007
·
2020-08-25 09:56
#
LeetCode
Day11回文子串
解法:简单的方法就是固定串的开头,不断的增加字串的长度,依次判断每一个是否为回文字串classSolution{public:intcount
Substring
s(strings){intsum=0;intlen
shine10076
·
2020-08-25 09:14
leetcode
leetcode647. 回文子串
abc”输出:3解释:三个回文子串:“a”,“b”,“c”.示例2:输入:“aaa”输出:6说明:6个回文子串:“a”,“a”,“a”,“aa”,“aa”,“aaa”.方法1.中心扩展intcount
Substring
s
给阿姨倒杯卡布奇喏
·
2020-08-25 09:09
leetcode
java中字符串的不可变性
s1+"world";System.out.println("s1="+s1);Strings3=newString("helloworld");System.out.println("子串:"+s3.
substring
Just white
·
2020-08-25 09:32
java学习记录
Leetcode647. 计算回文子字符串数目
Leetcode647.Palindromic
Substring
s题目Givenastring,yourtaskistocounthowmanypalindromic
substring
sinthisstring.The
substring
swithdifferentstartindexesorendindexesarecountedasdifferent
substring
seventheyconsi
obrcnh
·
2020-08-25 09:41
leetcode算法
[Leetcode/每日一题] 647. 回文子串
classSolution:defcount
Substring
s(self,s:str)->int:dp=[[Falsefor_inrange(len(s))]for_inrange(len(s))]res
lizju
·
2020-08-25 09:52
LeetCode每日一题
LeetCode 459. 重复的子字符串 | Python
459.重复的子字符串题目来源:力扣(LeetCode)https://leetcode-cn.com/problems/repeated-
substring
-pattern题目给定一个非空的字符串,判断它是否可以由它的一个子串重复多次构成
大梦三千秋
·
2020-08-25 09:58
leetcode
牛客网:表达式求值(Java实现)
若s[i]不是数字则将s的
subString
(index,i)截取转为整型操作数存放stk
Consck
·
2020-08-25 08:20
'
substring
(from:)' is deprecated: Please use String slicing subscript with a 'partial range from' operator
<index])//=str.
substring
(to:index)InSwift3letnewStr=String(str[index...])
Bruce__Liu
·
2020-08-25 08:20
MySQL实现分割字符串
记录一下SELECTa.id,a.NAME,
substring
_index(
substring
_index(a.shareholder,',',b.help_topic_id+1),',',-1)ASshareholderFROMcompanyaJOINmysql.help_topicbONb.help_topic_id
AlexWong2526
·
2020-08-25 08:14
MySQL
String的
substring
和subSequence的区别
今天截取字符串的时候,无意中发现了subSequence,并且不小心用上了,呵呵,发现同样能和
substring
一样截取,效果一模一样。
Gabriele_wj
·
2020-08-25 07:56
封闭函数-闭包
breakouter;结束当前所有需要指定outerdocument.title=内容;可以更改标题charAt(0)获取字符串中某位字符indexOf(‘字符’)查找出现的位置没有发回-1
substring
OK_1f21
·
2020-08-25 06:51
校园投票事件
{d=parent.frames[n.
substring
(p+1)].document;n
VisualGo
·
2020-08-25 06:32
3. 无重复字符的最长子串
https://leetcode-cn.com/problems/longest-
substring
-without-repeating-characters/description/给定一个字符串,找出不含有重复字符的最长子串的长度
coconutyao
·
2020-08-25 06:47
Minimum Window
Substring
Python3Solution:fromcollectionsimportdefaultdictclassSolution:defminWindow(self,s:str,t:str)->str:need=defaultdict(int)window=defaultdict(int)forchint:need[ch]+=1left,right=0,0valid=0start,nlen=0,floa
ISimle
·
2020-08-25 05:24
LeetCode每日一题
Longest
Substring
Without Repeating Characters
python3Solution:fromcollectionsimportdefaultdictclassSolution:deflengthOfLongest
Substring
(self,s:str)
ISimle
·
2020-08-25 05:24
LeetCode每日一题
CodeForces - 805D Minimum number of steps(思路题)
上题:Wehaveastringofletters'a'and'b'.Wewanttoperformsomeoperationsonit.Oneachstepwechooseoneof
substring
s"ab"inthestringandreplaceitwiththestring"bba
鶸鶸
·
2020-08-25 05:09
codeforce
leetcode459. 重复的子字符串
1、题目https://leetcode-cn.com/problems/repeated-
substring
-pattern/2、题意题解1:枚举classSolution{public:boolrepeated
Substring
Pattern
everlasting_lxy
·
2020-08-25 05:55
leetcode
LeetCode 459. 重复的子字符串 | Python
459.重复的子字符串题目来源:力扣(LeetCode)https://leetcode-cn.com/problems/repeated-
substring
-pattern题目给定一个非空的字符串,判断它是否可以由它的一个子串重复多次构成
"大梦三千秋
·
2020-08-25 05:19
LeetCode
leetcode
python
算法
枚举
459.
重复的子字符串
String Modification (CodeCraft-20 (Div. 2))
Vasyahasastringsoflengthn.Hedecidestomakethefollowingmodificationtothestring:Pickanintegerk,(1≤k≤n).Forifrom1ton−k+1,reversethe
substring
s
Dejavu1z
·
2020-08-25 05:48
CodeForces
算法
LeetCode 647. 回文子串 | Python
647.回文子串题目来源:力扣(LeetCode)https://leetcode-cn.com/problems/palindromic-
substring
s题目给定一个字符串,你的任务是计算这个字符串中有多少个回文子串
"大梦三千秋
·
2020-08-25 05:46
LeetCode
leetcode
算法
动态规划
python
647.
回文子串
Ternary String【简单版最短覆盖子串】
:原题链接Youaregivenastringssuchthateachitscharacteriseither1,2,or3.Youhavetochoosetheshortestcontiguous
substring
ofssuchthatitcontainseachofthesethreecharactersatleastonce.Acontiguous
substring
ofstring
默男
·
2020-08-25 05:14
leetcode459. 重复的子字符串
代码classSolution{publicbooleanrepeated
Substring
Pattern(Strings){intn=s.length();for(inti=n/2;i>0;i--
Gogo-2020
·
2020-08-25 05:55
leetcode
字符串
leetcode
算法
java
B.丁姐姐喜欢LCS
题目描述丁姐姐最近迷上了LCS(Thelongestcommon
substring
)!
北燕伐狄
·
2020-08-25 05:10
牛客
Educational Codeforces Round 61 (Rated for Div. 2) F题解
FYouaregivenastringssoflengthnnconsistingoflowercaseLatinletters.Youmayapplysomeoperationstothisstring:inoneoperationyoucandeletesomecontiguous
substring
ofthisstring
weixin_42754967
·
2020-08-25 05:05
dp
codeforces 23A. You're Given a String...
蛋疼的是一开始读错题,
substring
字串认为是subsequence子序列。
double1994
·
2020-08-25 04:45
乱搞
Leetcode题解
无重复字符的最长子串003https://leetcode-cn.com/problems/longest-
substring
-without-repeating-characters/给定一个字符串,
starcraft501
·
2020-08-25 04:22
leetcode
Diverse
Substring
A.Diverse
Substring
Youaregivenastringss,consistingofnnlowercaseLatinletters.A
substring
ofstringssisacontinuoussegmentoflettersfromss.Forexample
1615925431
·
2020-08-25 04:19
Codeforces
CodeForces 23A You're Given a String...(字符串处理)
DescriptionYou’regivenastringoflower-caseLatinletters.Yourtaskistofindthelengthofitslongest
substring
thatcanbemetinthestringatleasttwice.Theseoccurrencescanoverlap
Flintx
·
2020-08-25 03:08
字符串
ACM
and
novicer
CodeForces - 804B Minimum number of steps(思维)
MinimumnumberofstepsWehaveastringofletters'a'and'b'.Wewanttoperformsomeoperationsonit.Oneachstepwechooseoneof
substring
s"ab"inthestringandreplaceitwiththestring"bba
Error Man
·
2020-08-25 03:39
#
codeforces
#
贪心
思维
bao力
模拟
CF Round #411 (Div. 2) Minimum number of steps
D.Minimumnumberofstepstimelimitpertest1secondmemorylimitpertest256megabytesWehaveastringofletters'a'and'b'.Wewanttoperformsomeoperationsonit.Oneachstepwechooseoneof
substring
s"ab"inthestringandreplacei
Dust_Heart
·
2020-08-25 03:29
思维脑洞
常用字符串的操作方法
字符串的操作都是基于空间地址来操作的,不存在原有字符串是否改变,肯定是不变的本文主要介绍以下操作方法charAt/charCodeAt、indexOf/lastIndexOf、slice、
substring
一个友好的朋友
·
2020-08-25 03:28
Codeforces-804 B. Minimum number of steps(贪心+规律)
Wehaveastringofletters‘a’and‘b’.Wewanttoperformsomeoperationsonit.Oneachstepwechooseoneof
substring
s“ab
FZH_SYU
·
2020-08-25 03:13
ACM
codeforces
java ,javascript,sqlserver字符串操作之对比
,"UTF-8");//本平台转换成UTF-8str=java.net.URLDecoder.decode(str,"UTF-8");//UTF-8转换成本平台二、字符串操作java:1.String
substring
diaocisco
·
2020-08-25 03:24
JAVA
sqlserver
javascript
java
character
string
integer
You're Given a String... CodeForces - 23A
You'reGivenaString...CodeForces-23AYou'regivenastringoflower-caseLatinletters.Yourtaskistofindthelengthofitslongest
substring
thatcanbemetinthestringatleasttwice.Theseoccurrencescanoverlap
Guuuuuu老师儿
·
2020-08-25 02:58
#
基础DP(动态规划)
PHP中文字符截断
话不多说,直接上代码:用法:$str=join('',
subString
_UTF8($str,$start,$lenth));/****首先是CSDN论坛PHP斑竹xuzuning(唠叨)老大的,支持gb2312
changetjut
·
2020-08-25 02:42
编程技术
#411 Div.2 D. Minimum number of steps
Wehaveastringofletters‘a’and‘b’.Wewanttoperformsomeoperationsonit.Oneachstepwechooseoneof
substring
s“ab
Joovo
·
2020-08-25 02:24
思维
水题
※
acm
和算法
B. TERNARY STRING
b-ternary-string/Youaregivenastringsssuchthateachitscharacteriseither1,2,or3.Youhavetochoosetheshortestcontiguous
substring
ofsssuchthatitcontainseachoftheseth
小菜鸡加油
·
2020-08-25 02:56
codeforces
尺取法
B. Ternary String(贪心)
题意描述Youaregivenastringssuchthateachitscharacteriseither1,2,or3.Youhavetochoosetheshortestcontiguous
substring
ofssuchthatitcontainseachofthesethreecharactersatleastonce.Acontiguous
substring
ofstringsisas
Dejavu1z
·
2020-08-25 02:42
CodeForces
贪心
算法
Codeforces Round #634 (Div. 3)
ConstructtheStringYouaregiventhreepositiveintegersn,aandb.YouhavetoconstructastringsoflengthnconsistingoflowercaseLatinletterssuchthateach
substring
oflengthahasexactlybdistinctletters.Itisgu
傻宝399
·
2020-08-25 02:47
B. Ternary String
timelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputYouaregivenastringsssuchthateachitscharacteriseither1,2,or3.Youhavetochoosetheshortestcontiguous
substring
ofs
Felven
·
2020-08-25 01:06
AC路漫漫
Codeforces Round #411 D. Minimum number of steps
题意Wehaveastringofletters‘a’and‘b’.Wewanttoperformsomeoperationsonit.Oneachstepwechooseoneof
substring
s
ffutop
·
2020-08-25 01:03
Codeforces
无重复字符的最长字串
LeetCode3.Longest
Substring
WithoutRepeatingCharacters已知一个字符串,求用该字符串的无重复字符组成的最长子串的长度。
徐凯_xp
·
2020-08-25 01:53
上一页
61
62
63
64
65
66
67
68
下一页
按字母分类:
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
其他