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
Python刷力扣——3.无重复字符的最长子串
来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/longest-
substring
-without-repeating-characters/classSolution
热休克蛋白
·
2023-10-01 14:24
python
leetcode
数据结构与算法之字典: Leetcode 3. 无重复字符的最长子串 (Typescript版)
无重复字符的最长子串https://leetcode.cn/problems/longest-
substring
-without-repeating-characters/描述给定一个字符串s,请你找出其中不含有重复字符的最长子串的长度
Wang's Blog
·
2023-10-01 14:22
Data
Structure
and
Algorithms
leetcode
算法
Objective-c 字符串遍历
NSString*newStr=@"abdcdddccdd00大家好哦";NSString*temp=nil;for(inti=0;i<[newStrlength];i++){temp=[newStr
substring
WithRange
MJiao
·
2023-10-01 11:44
IOS
LeetCode解析(三): Longest
Substring
Without Repeating Characters
Givenastring,findthelengthofthelongest
substring
withoutrepeatingcharacters.Example:Input:"abcabcbb"Output
Wingbu
·
2023-10-01 09:16
Day 56 代码随想录动态规划 回文子串
文章目录647.回文子串516.最长回文子序列官方答案647.回文子串 题目链接:647.回文子串classSolution(object):defcount
Substring
s(self,s):""
别倒在黎明之前QAQ
·
2023-10-01 02:43
算法训练营
动态规划
leetcode
算法
代码随想录|day57|动态规划part17● 647. 回文子串 ● 516.最长回文子序列● 动态规划总结篇
回文子串链接:代码随想录动态规划解决的经典题目,如果没接触过的话,别硬想直接看题解做法一:暴力遍历classSolution{//普通做法,暴力遍历,判断是否回文public:intnum=0;intcount
Substring
s
isabelightL
·
2023-10-01 02:12
代码随想录
动态规划
算法
c++
Day57.动规:回文子串、最长回文子串
Day57.动规:回文子串、最长回文子串0647.回文子串链接:0647.回文子串参考:代码随想录classSolution{public:intcount
Substring
s(strings){vector
izwmain
·
2023-10-01 01:42
代码随想录
leetcode
算法
动态规划
c++
回文子串
LeetCode #567 Permutation in String 字符串的排列
writeafunctiontoreturntrueifs2containsthepermutationofs1.Inotherwords,oneofthefirststring'spermutationsisthe
substring
ofthesecondstring.Ex
air_melt
·
2023-09-30 22:50
Java技巧 - 字符串拼接
StringBuilderbuilder=newStringBuilder();for(Integersub:list){builder.append(sub).append(",");}//处理末尾逗号returnbuilder.
substring
子笙—望舒
·
2023-09-30 21:53
java技巧
java
开发语言
guava
leetcode76 Minimum Window
Substring
给定两个字符串s和t,找到s的一个子串,使得t的每个字符都出现在子串中,求最短的子串由于要每个字符出现,所以顺序其实没有关系因此我们可以定义一个map,统计t中字符出现次数然后在s中慢慢挪动滑动窗口,如果符合要求就缩短滑动窗口,直到不符合,然后继续移动classSolution{public:stringminWindow(strings,stringt){intans=-1,ans_len=-1
Nightmare004
·
2023-09-30 19:16
算法
数据结构
Longest
Substring
with At Least K Repeating Characters
Givenastringsandanintegerk,returnthelengthofthelongest
substring
ofssuchthatthefrequencyofeachcharacterinthis
substring
isgreaterthanorequaltok.classSolution
bjrzxyt
·
2023-09-30 07:42
Longest
Substring
Without Repeating Characters
原题链接3.Longest
Substring
WithoutRepeatingCharactersGivenastring,findthelengthofthelongest
substring
withoutrepeatingcharacters.Example1
煮酒_zzh
·
2023-09-30 06:55
【力扣】动态规划题目之“最”系列
文章目录一、动态规划问题解决步骤二、力扣经典例题[5.最长回文子串](https://leetcode.cn/problems/longest-palindromic-
substring
/)[32.最长有效括号
NCY_92377
·
2023-09-30 05:23
leetcode
动态规划
Leetcode——回溯法 palindrome-partitioning
palindrome-partitioning题目描述:Givenastrings,partitionssuchthatevery
substring
ofthepartitionisapalindrome.Returnallpossiblepalindromepartitioningofs.Forexample
差不多小姐的差不多努力
·
2023-09-30 04:19
在线编程
Leetcode——回溯法
【学习笔记】CF1817F Entangled
Substring
s(基本子串结构)
前置知识:基本子串结构,SAM的结构和应用学长博客字符串理论比较抽象,建议直观的去理解它子串ttt的扩展串定义为ext(t):=t′\text{ext(t)}:=t'ext(t):=t′,满足ttt是t′t't′的子串,且occ(t)=occ(t’)\text{occ(t)}=\text{occ(t')}occ(t)=occ(t’)基本性质:若t=[l:r],t′=[l′:r′]t=[l:r],t
仰望星空的蚂蚁
·
2023-09-30 01:35
字符串
学习
笔记
SqlServer——查看当前正在执行SQL语句的sql 并结束该进程
Database]=DB_NAME(sp.dbid),[User]=nt_username,[Status]=er.status,[Wait]=wait_type,[IndividualQuery]=
SUBSTRING
LtMamba
·
2023-09-29 23:27
SQLServer
sql
数据库
database
MySQL 常用函数
文章目录1.数学函数ABS()CEIL()FLOOR()CONV()2.字符串函数CONCAT()CONCAT_WS()GROUP_CONCAT()SUBSTR()
SUBSTRING
_INDEX()3.
恋喵大鲤鱼
·
2023-09-29 22:16
MySQL
快速上手
mysql
函数
mysql数据库 报错 too many connection
showfullprocesslistshowvariableslike'%max_connections%';SELECT
substring
_index(host,':',1)AShost_name,
失独者
·
2023-09-29 12:45
Mysql
数据库
mysql
connection
数据库:Hive转Presto(二)
函数,importreimportosfromtkinterimport*classHive2Presto:def__int__(self):self.t_funcs=['substr','nvl','
substring
空花缱绻三分
·
2023-09-29 09:46
SQL
数据库
hive
hadoop
微信小程序文件下载两种方式
util.get(api.downloadDailyYear).then(function(res){//自定义get请求,可忽略if(res.code==200){varfileName=res.data.
substring
沈健_算法小生
·
2023-09-29 07:20
干货
微信小程序
c 取字符串中的子串
#include#include#include#defineMaxLen255typedefstruct{charch[MaxLen];intlength;}SString;bool
SubString
Tiger.chen
·
2023-09-29 07:13
c语言
开发语言
算法通关村第16关【白银】| 滑动窗口经典问题
窗口内为无重复字符子串,使用哈希表来保存最新碰到的字符下标,只要出现重复就缩小left指针,缩小到无重复字符也就是map.get(c)+1classSolution{publicintlengthOfLongest
Substring
三水木_
·
2023-09-29 02:31
算法
算法
leetcode
数据结构
字数限制
inputpropertychange",function(){var$this=$(this),_val=$this.val(),count="";if(_val.length>600){$this.val(_val.
substring
梦里梦不到的梦_b5c8
·
2023-09-28 21:16
【题解】力扣第 78 场双周赛
6068.毯子覆盖的最多白色砖块数6069.最大波动的子字符串5299.找到一个数字的K美丽值思路:区间划分整数,判断是否整除,注意0不能做分母classSolution{public:intdivisor
Substring
s
leimingzeOuO
·
2023-09-27 13:57
算法
LeetCode
C++
leetcode
算法
贪心算法
动态规划
力扣第78场双周赛
代码:classSolution{public:intdivisor
Substring
s(intnum,intk){intcnt=0;strings=to_string(num);for(inti=0;
=^_^=866
·
2023-09-27 13:57
leetcode
c++
算法
数据结构与算法比赛:力扣周赛288
leetcode-cn.com/contest/weekly-contest-288/文章目录2231.按奇偶性交换后的最大数字2232.向表达式添加括号后的最小结果JavaStringindexOf()方法Java
substring
平什么阿
·
2023-09-27 13:56
数据结构与算法比赛
#
力扣周赛
数据结构
算法
SQL 常用字符处理函数
1、取子字符串left()、right()、
substring
():取子字符串2、charindex():返回字符串中指定表达式的开始位置patindex():返回指定“表达式中模式”第一次出现的开始位置
weixin_41999297
·
2023-09-27 05:53
SQL
leetcode hot 3-4
3.无重复字符的最长字串classSolution{public:intlengthOfLongest
Substring
(strings){unordered_setocc;//哈希集合,记录每个字符是否出现过
悲伤の李某
·
2023-09-26 23:48
leetcode热题100
leetcode
排序算法
算法
hot100-无重复最长子串
思路最典型的dp问题,d[i]=d[i-1]+1(与d[i-1]中无重复),d[i]=n(有重复)代码classSolution{publicintlengthOfLongest
Substring
(Strings
午睡之前吃颗糖
·
2023-09-26 23:48
hot100个人题解整理
动态规划
leetcode
算法
vue提取第几个字符,
substring
(0,4)
if(this.reportCoverList.meteringDate){//2022-05-26letyear=this.reportCoverList.meteringDate.
substring
youmdt
·
2023-09-26 19:46
vue.js
javascript
前端
字符串中按规则插入空格
今天同事群有个同事在问兄弟们,对于任意长度的数字字符串,比如123123456希望按照4位4位空格展示,比如123456除了手写
substring
截取,有别的更简单的方法么?
_我和你一样
·
2023-09-26 18:21
表格内日期比较计算
substring
?.(0,10)}}{{ruleForm.endDate?.
substring
?.
易de
·
2023-09-26 14:56
前端
经验
javascript
RPC之 Sekiro 案例
returnbtoa(arg)}//生成唯一标记uuid编号functionguid(){functionS4(){return(((1+Math.random())*0x10000)|0).toString(16).
substring
福爱娃
·
2023-09-26 07:01
爬虫基础知识
rpc
网络协议
网络
Base64字符串图片旋转工具类
publicstaticStringrotate(Stringbase64){Stringvalue=base64;try{byte[]bytes=Base64.decodeBase64(base64.
substring
一名技术极客
·
2023-09-26 06:50
工具类
base64
图片工具
Number of Strings That Appear as
Substring
s in Word 解题报告
Question:Givenanarrayofstringspatternsandastringword,returnthenumberofstringsinpatternsthatexistasa
substring
inword.A
substring
isacontiguoussequenceofcharacterswithinastring.Example1
杨鑫newlfe
·
2023-09-26 06:20
Python
算法
LeetCode
leetcode
算法
Python
面试
字符串
Java字符串处理案例(截取、拼接、转换)
判断某个字符(串)存在某个字符串中6、String[]转List7、日期对比8、字符串替换1、截取Stringa=“123456789ABCDFG”;1.1案例按*拆分保留第一个*之前StringUtils.
substring
Before
是潮汕的灿灿展吖
·
2023-09-25 23:22
JAVA基础知识
java
windows
python
32. Longest Valid Parentheses(week11)
Givenastringcontainingjustthecharacters'('and')',findthelengthofthelongestvalid(well-formed)parentheses
substring
.Example1
piubiupiu
·
2023-09-25 22:45
js字符串转时间戳
完整代码//字符串转时间戳constcharToTime=(dateStr)=>{letdate=dateStr.
substring
(0,19);date=dateStr.replace(/\-/
清秋挽风
·
2023-09-25 22:05
javascript
前端
开发语言
js截取小数点后几位方法总结
1、toFixed()这个方法其实是有四舍五入的,查阅过后发现是银行家四舍五入算法,这个我也不了解2、
subString
()方法进行截取constgetnum=(num)=>{if(isNaN(num)
Er_很哇塞啊
·
2023-09-25 19:58
javascript
前端
开发语言
滑动窗口9.23
1876.长度为3且各字符不同的子字符串1876.长度为三且各字符不同的子字符串-力扣(LeetCode)https://leetcode.cn/problems/
substring
s-of-size-three-with-distinct-characters
想做渗透的杨
·
2023-09-25 06:51
练习
算法
leetcode
c++
leetcode 剑指offer刷题归类之 二 动态规划篇
测试样例:"1AB2345CD",9,"12345EF",7返回:4publicclassLongest
Substring
{//最长公共子串要求是连续的publicintfindLongest(StringA
茴香豆的茴有六种写法
·
2023-09-25 05:59
数据结构与算法
HJ65 查找两个字符串a,b中的最长公共子串
题目:HJ65查找两个字符串a,b中的最长公共子串题解:一、暴力枚举枚举求出较短串的所有子串遍历所有子串,判断长串是否包含子串记录最长子串privateStringgetMax
SubString
2(Strings1
PZHU_CG_csdn
·
2023-09-25 00:56
算法
华为
最长公共子串
循环语句;数据去重,字符串处理的方法;字符串反转
字符串处理的方法split把数组切割document.write(str6);//往网页上输出document.title=str6;//重新赋值title标签包括
substring
:截取字符串,包括开始不包括结束
wyc111
·
2023-09-24 12:59
leetcode3
Longest
Substring
WithoutRepeatingCharactersGivenastring,findthelengthofthelongest
substring
withoutrepeatingcharacters.Example1
小烈yhl
·
2023-09-24 05:28
代码随想录算法训练营Day57 | 动态规划(17/17) LeetCode 647. 回文子串 516.最长回文子序列
第一题647.Palindromic
Substring
sGivenastrings,returnthenumberofpalindromic
substring
sinit.Astringisapalindromewhenitreadsthesamebackwardasforward.A
substring
isacontiguousse
Scouser_H
·
2023-09-24 01:41
LeetCode
算法
动态规划
leetcode
Leetcode30.串联所有单词的子串
代码:(差一个用例超时qaqclassSolution{publicListfind
Substring
(Strings,String[]words){Listres=newArrayListlist=newArrayListiterator
从月亮走向月亮7
·
2023-09-23 23:50
开发语言
代码随想录算法训练营day 57 |647. 回文子串、516.最长回文子序列
647.回文子串代码随想录思路:代码:classSolution{publicintcount
Substring
s(Strings){intn=s.length();if(n==1)return1;//
wuhuqifei123
·
2023-09-23 22:17
算法
代码随想录算法训练营Day57 | 647. 回文子串,516.最长回文子序列,动态规划总结篇
647.回文子串文章链接|题目链接|视频链接C++解法classSolution{public:intcount
Substring
s(strings){vector>dp(s.size(),vector
zxqbsa
·
2023-09-23 22:16
代码随想录刷题训练营
算法
动态规划
代码随想录算法训练营第五十七天| 647. 回文子串、516.最长回文子序列
代码随想录算法训练营第五十七天|647.回文子串、516.最长回文子序列647.回文子串解题代码516.最长回文子序列解题代码647.回文子串题目链接:647.回文子串解题代码funccount
Substring
s
Joanna-升
·
2023-09-23 22:16
代码随想录训练营
算法
leetcode
动态规划
跳转到另一页面指定选项卡块
function(){varpage_url;//初始化URL参数InitUrlParms=function(){varargs=newObject();varquery=location.search.
substring
yuan_1005_85
·
2023-09-23 22:44
前端
jQuery
上一页
16
17
18
19
20
21
22
23
下一页
按字母分类:
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
其他