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
LeetCode 每日一题
https://leetcode-cn.com/problems/longest-
substring
-without-repeating-characters/.本题考察的知识点为滑动窗口,此处假设有一个字符串
weixin_44713562
·
2020-08-20 20:21
leetcode
字符串
leetcode
java
Objective-C AES 加解密
[NSMutableDatadata];unsignedintidx,intValue;for(idx=0;idx+2<=hex.length;idx+=2){NSString*hexStr=[hex
substring
WithRange
RainSets
·
2020-08-20 18:23
textarea限制输入的字数
inputpropertychange",function(){var$this=$(this),_val=$this.val(),count="";if(_val.length>100){$this.val(_val.
substring
山楂罐头
·
2020-08-20 18:11
[分享]
leetcode第三题 最长无重复字符子串
我的代码publicintlengthOfLongest
Substring
(Strings){if(s.length()==0){return0;}elseif(s.length()==1){return1
爱听歌的程序猿
·
2020-08-20 17:51
三:Leetcode 第三题
c版intlengthOfLongest
Substring
(char*s){intn=strlen(s);intindexes[128]={0};intmax=0;intlen;for(inti=0,j
Dismate
·
2020-08-20 17:54
leetcode
leetcode五月每日一题 leetcode3
我是利用滑动窗口来做的classSolution{public:intlengthOfLongest
Substring
(strings){intlen=0;intfirst=0,end=0;//在[a.
五月的天气
·
2020-08-20 17:50
leetcode
每天一题LeetCode[第五天]
每天一题LeetCode[第五天]LongestPalindrome
Substring
Description:Givenastrings,findthelongestpalindromic
substring
ins.Youmayassumethatthemaximumlengthofsis1000
GengGeng-Coder
·
2020-08-20 17:43
LeetCode
LeetCode第3题
3.Longest
Substring
WithoutRepeatingCharactersGivenastring,findthelengthofthelongest
substring
withoutrepeatingcharacters.Examples
flybirdFb
·
2020-08-20 17:16
Java
[leetcode]第3题
classSolution{public:intlengthOfLongest
Substring
(strings){vectorv(256,-1);intlen=s.size();intans=0;intstart
利来利往
·
2020-08-20 17:44
C++
算法
leetcode
LeetCode - 3. 最长无重复字符字串
3.Longest
Substring
WithoutRepeatingCharactersGivenastring,findthelengthofthelongest
substring
withoutrepeatingcharacters.Examples
ncalphabet
·
2020-08-20 17:41
LeetCode
Longest Palindromic
Substring
【String/动态规划】中等
Givenastrings,findthelongestpalindromic
substring
ins.Youmayassumethatthemaximumlengthofsis1000.Example1
myRealization
·
2020-08-20 17:32
LeetCode
字符串
动态规划
用js去掉字符串的第一个字符或者最后一个字符
stringObject.
substring
(start,stop)//截取的是开始与结束的字符串。stringObject.substr(start,length)//截取的是开始与字符串长度。
maggie_live
·
2020-08-20 17:32
JavaScript
前端
网页标题栏实现走马灯效果
functionscroll(){vartitle=document.title;if(dir=="left"){varfirstch=title.charAt(0);varleftstr=title.
substring
m1181324794t
·
2020-08-20 16:26
javascript
网页
LeetCode第三题答案 C++
classSolution{public:intlengthOfLongest
Substring
(strings){intflag=0;intcount=0;intl=0;intresult=1;intdiffer
arella1101
·
2020-08-20 16:49
LeetCode学习
leetcode小白解题记录——第三题
3.Longest
Substring
WithoutRepeatingCharactersGivenastring,findthelengthofthelongest
substring
withoutrepeatingcharacters.Examples
lin_tuer
·
2020-08-20 16:42
C++
CSV配置文件的优化策略
我们是直接Split,也测试过indexof+
substring
,
侑虎科技
·
2020-08-20 16:50
更新字段名包含某些字符的字段为Null
null,'fromdbo.syscolumnswhereid=OBJECT_ID('dbo.EF_ARF_TERMINATION_DETAIL')andnamelike'VERIFY_%'set@sql=
substring
lee576
·
2020-08-20 16:18
Sql
Server
Leetcode第三题python
两次嵌套循环把整个列表遍历:defhas_elem(a,s):forkina:ifk==s:returnTruereturnFalseclassSolution(object):deflengthOfLongest
Substring
hwt3525055
·
2020-08-20 16:43
leetcode 第三题题目及解题思路
Longest
Substring
WithoutRepeatingCharactersquestion:question:Givenastring,findthelengthofthelongest
substring
withoutrepeatingcharacters.Examples
幽默的荆轲君
·
2020-08-20 16:31
面试
求字符串中子串出现的次数(c++实现)
代码如下:intfind
SubString
NUM(constchar*targetString,constchar*
subString
){assert(NULL!
cai0538
·
2020-08-20 15:50
c/c++编程语言
LeetCode OJ 第3题
Longest
Substring
WithoutRepeatingCharactersGivenastring,findthelengthofthelongest
substring
withoutrepeatingcharacters.Examples
偷嘴的小猴子
·
2020-08-20 15:59
leetCode
leetcode 第三题 最长不重复子串
classSolution{public:intlengthOfLongest
Substring
(strings){mapmymap;intlength=s.length();int*p=(int*)malloc
提伯斯丶
·
2020-08-20 15:55
leetcode
leetcode第三题:最长子串的c++9行解法
题目:Givenastring,findthelengthofthelongest
substring
withoutrepeatingcharacters.Examples:Given"abcabcbb"
TimoTolkki1966
·
2020-08-20 15:24
algotirhm
Leetcode 第3题
intlengthOfLongest
Substring
(strings){vectorpos(256,-1);intleft=-1,res=0;for(inti=0;ileft)left=pos[s[i
TempterCyn
·
2020-08-20 15:19
Leetcode
字符串的操作:取字符, 替换字符,字符拼接,转换,插入字符等
",[strcharacterAtIndex:1]);结果:2015-07-2017:37:56.737OC练习[1620:98525]玩*在这里可以注意一下:%C可以输出汉字,而%c只能输出字母2.
substring
FromIndex
MLtianya
·
2020-08-20 15:36
OC
【leetcode】第3题:求最长不重复(字符不重复)的子串的长度
#include#includeintlengthOfLongest
SubString
(char*s){intlen=0;char*addressTable[128]={NULL};char*p=s,*
Apolo_
·
2020-08-20 14:57
LeetCode
每天一题LeetCode[第三天]
每天一题LeetCode[第三天]Longest
Substring
WithoutRepeatingCharactersDescription:Givenastring,findthelengthofthelongest
substring
withoutrepeatingcharacters.Examples
GengGeng-Coder
·
2020-08-20 14:55
LeetCode
HTML折叠菜单
InserttitleherevaritemHeight=40;vardividerHeight=1;functionopenMenu(obj){menuTitleId=obj.id;menuId="menu"+menuTitleId.
substring
rnaissance
·
2020-08-20 13:35
html
27、字符串的排列
不百度真的记不住char[]转String、Arrays.sort、
substring
()等细节~imp
quiterr
·
2020-08-20 13:41
java截取字符串 截串
substring
关键字:java截取字符串截串
substring
需求,把"01:大汽车",分成01和大汽车有两种做法:一是
substring
Java代码packagetest;publicclass
substring
Test
贝雷帽的一天
·
2020-08-20 11:49
java
Android 时间戳转换
32.320Z")这个时间是格林尼治时间转换代码StringDate(StringGTMDate){inttIndex=GTMDate.indexOf("T");StringdateTemp=GTMDate.
substring
_不二_
·
2020-08-20 11:57
Android
java-输入的一个字符串,判断这个字符串是否对称
publicstaticvoidmain(Stringargs[]){Scannerin=newScanner(System.in);Strings=in.nextLine();intsl=s.length();Stringns=s.
substring
qq_27597867
·
2020-08-20 11:57
java题目
蓝桥杯 基础练习 十六进制转八进制
输入格式输入的第一行为一个正整数n(100-->delete00-->notanySystem.out.println(s3.
substring
(1));}else{intq=0;while(s3.charAt
hoho_12
·
2020-08-20 10:53
Java算法
算法侦探
注意:字符串
substring
方法在jkd6,7,8中的差异。
标题中的
substring
方法指的是字符串的
substring
(intbeginIndex,intendIndex)方法,这个方法在jdk6,7是有差异的。
substring
有什么用?
Java技术栈
·
2020-08-20 09:09
Java
Java核心技术
JAVA
字符串异常下标越界:String index out of range: -X
最近使用
subString
()操作字符串的时候总是报下标越界,我改来改去,debug3000遍,终于发现了一个错误,我excel表里有5行测试数据,但是sheet.getLastRowNum(),也就是获得最后一行
weixin_42620479
·
2020-08-20 07:39
leetcode #3 Longest
Substring
Without Repeating Characters
Givenastring,findthelengthofthelongest
substring
withoutrepeatingcharacters.Examples:Given"abcabcbb",theansweris"abc
huntriver
·
2020-08-20 07:25
python实现求字符串最长公共子串
本文主要参考http://www.cnblogs.com/ider/p/longest-common-
substring
-problem-optimization.html的讲解,本人自己用python
Shane Zhao
·
2020-08-20 06:32
Python
数据结构/算法
Q5 Longest Palindromic
Substring
Givenastrings,findthelongestpalindromic
substring
ins.Youmayassumethatthemaximumlengthofsis1000.Example
牛奶芝麻
·
2020-08-20 05:50
leetcode golang实现-----------------给出一个字符串,求出不重复的子字符串的最长长度
packagemainimport("strings")/*给出一个字符串,求出不重复的子字符串的最长长度*/funclengthOfLongest
Substring
(sstring)int{iflen
yyhero1
·
2020-08-20 04:48
算法题
leetcode笔记—Hash Table
LongestSubstrWithoutRepeatingCharacters(medium)最长的无重复的子字符串problemViewCode18.4Sum(medium)找到所有和为target的四元数组problemViewCode30.
Substring
withConcatenati
weixin_30580943
·
2020-08-20 04:31
最大上升子序列和最长上升子序列python
牛客网一个数的序列bi,当b1=0:iflis[j]temp:temp=dp[i]returntempprint(max_substing(lis))2最长上升子序列时间复杂度O^2defmax_long_
substring
飞奔的帅帅
·
2020-08-20 04:58
python编程
无重复字符的最长子串(Longest
Substring
Without Repeating Characters)
3.无重复字符的最长子串给定一个字符串,请你找出其中不含有重复字符的最长子串的长度。示例1:输入:"abcabcbb"输出:3解释:因为无重复字符的最长子串是"abc",所以其长度为3。示例2:输入:"bbbbb"输出:1解释:因为无重复字符的最长子串是"b",所以其长度为1。示例3:输入:"pwwkew"输出:3解释:因为无重复字符的最长子串是"wke",所以其长度为3。请注意,你的答案必须是子
奔跑の河马
·
2020-08-20 03:24
leetcode
leetcode——3—— Longest
Substring
Without Repeating Characters
Givenastring,findthelengthofthelongest
substring
withoutrepeatingcharacters.Forexample,thelongest
substring
withoutrepeatinglettersfor"abcabcbb"is"abc
happyxuma1991
·
2020-08-20 03:57
leetcode
LeetCode题解 -- 字符串和数组(1371)
FindtheLongest
Substring
ContainingVowelsinEvenCountsGiventhestrings,returnthesizeofthelongest
substring
containingeachvowelanevennumberoftimes.Thatis
fantow
·
2020-08-20 03:12
字符串和数组
LeetCode 3 无重复字符的最长字符串 c语言
intlengthOfLongest
Substring
(char*s){intmaxlen=0,currlen=0;inttable[128],i,j,start=0;memset(table,0,sizeof
LeetCode.
·
2020-08-20 03:35
mysql字符数字组合进行排序
SELECT
SUBSTRING
(ld.page_no,2,1),
SUBSTRING
_INDEX(
SUBSTRING
_INDEX(ld.page_no,"-l",-1),"-p",1),
SUBSTRING
_INDEX
SHUIPING_YANG
·
2020-08-20 02:43
mysql
Leetcode解题之路(golang版)汇总
899755982两数相加(AddTwoNumbers)https://blog.csdn.net/myz123321/article/details/907369543无重复字符的最长子串(Longest
Substring
WithoutRepeatin
奔跑の河马
·
2020-08-20 02:04
leetcode
codingbat :recursion1:2(JAVA)
publicintcountX(Stringstr){if(str.length()<=1){if(str.equals("x"))return1;elsereturn0;}elsereturncountX(str.
substring
zafzap1
·
2020-08-20 02:25
扯蛋
leetcode无重复字符的最长子串
pythonclassSolution(object):deflengthOfLongest
Substring
(self,s):""":types:str:rtype:int"""i=0;j=0;ans
张晓天a
·
2020-08-20 02:10
东北人都难懂的东北话
东北人都难懂的东北话2009年09月27日>24)&0xff;returnthis.FONTMAP.
substring
(2*(id-1),2*id);}"color=#000000size=4>振兴东北
iteye_19975
·
2020-08-20 00:28
上一页
68
69
70
71
72
73
74
75
下一页
按字母分类:
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
其他