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
使用jquery过滤上传文件的类型和限制文件的大小
;varext=filepath.
substring
(extStart,filepath.length).toUpper
liuxing19870629
·
2020-09-13 19:31
(转) java程序员面试150++ (下)
}if(strNumChFormat.
substring
(0,2)=="一拾"){strNumChFormat=strNumChFormat.
substring
(1,strNumChFormat.length
killerofwolf
·
2020-09-13 19:03
提取一个double类型数的整数部分或者小数部分
doubleb=9.7;inta=(int)b;Stringc=b+"";Stringd=c.
substring
(c.indexOf("."),c.length());System.out.println
a657281084
·
2020-09-13 18:50
JS
leetcode131—Palindrome Partitioning
leetcode131—PalindromePartitioning1.原题原题链接Givenastrings,partitionssuchthatevery
substring
ofthepartitionisapalindrome.Returnallpossiblepalindromepartitioningofs.Forexample
NearXDU
·
2020-09-13 17:17
leetcode
LeetCode 131. Palindrome Partitioning 树形问题,状态回溯
131.PalindromePartitioningGivenastrings,partitionssuchthatevery
substring
ofthepartitionisapalindrome.Returnallpossiblepalindromepartitioningofs.Forexample
大疯疯
·
2020-09-13 17:18
LeetCode
LeetCode
树形问题回溯法
一个包含正整数和负整数的数组,找出和最大的子串.
};给定一个整型数组a,求出最大连续子段之和/*FindMaxSub.cpp*bywangzhihong*05/01/2007****************specification:findthe
substring
inanarraywhichha
wsccdsn
·
2020-09-13 17:40
算法整理
leetcode-3无重复字符的最长字符串
classSolution:deflengthOfLongest
Substring
(self,s:str)->int:lst=list(s)maxl=0sublst=[]foriinlst:ifiinsublst
加油啊DuXY
·
2020-09-13 17:24
LeetCode
java获取运行的jar(class)文件的路径
StringstrURL=getClass().getProtectionDomain().getCodeSource().getLocation().getPath();strURL=strURL.
substring
weixin_30507269
·
2020-09-13 16:25
一个真正靠谱的中国的手机号的验证 javascript
{9}/;if(value.match(reg_phone)){returntrue;}else{returnfalse;}}elseif(value.length==13){tempt=value.
substring
打酱油的小木匠
·
2020-09-13 16:57
前端
Leetcode各题 个人理解(持续更新)LeetCode java
因为比如99+9999,这种情况,或就可以全部包含3.Longest
Substring
WithoutRepeatingCharacters其中一个解法滑动窗口,就是在一个字符串中,从头到尾,一个i-j范围区间内
卡卡卡卡热浪袭来
·
2020-09-13 16:50
算法
[Lintcode]136. Palindrome Partitioning /[Leetcode]131. Palindrome Partitioning
131.PalindromePartitioning本题难度:MediumTopic:SearchDFSDescriptionGivenastrings,partitionssuchthatevery
substring
ofthepartitionisapalindrome.Returnallpossiblepalindromepartition
siriusli1981
·
2020-09-13 16:49
lintcode
leetcode
Longest Palindromic
Substring
GivenastringS,findthelongestpalindromic
substring
inS.YoumayassumethatthemaximumlengthofSis1000,andthereexistsoneuniquelongestpalindromic
substring
.Subscribetoseewhichcompaniesaskedthisquestion
好多鱼哦
·
2020-09-13 16:11
LeetCode
C# Base64转图片,并保存到服务器上
publicstringdecodeBase64ToImage(stringdataURL,stringpath,stringimgName){stringfilename="";//声明一个string类型的相对路径Stringbase64=dataURL.
Substring
Herman97
·
2020-09-13 16:02
C#
Base64
SystemProperties.get(String key,String def)获取系统属性
.获取build.prop文件的版本信息StringcurVersion;curVersion=SystemProperties.get("ro.build.display.id",UNKNOWN).
substring
打工仔呀
·
2020-09-13 16:04
leetcode ||131、Palindrome Partitioning
problem:Givenastrings,partitionssuchthatevery
substring
ofthepartitionisapalindrome.Returnallpossiblepalindromepartitioningofs.Forexample
hustyangju
·
2020-09-13 15:40
LeetCode
前端jquery控制input只能输入符合规范的手机号码
functiontest(){value=inputPerameter.val();if(value==''){booleanValue=true;}if(value.length>3){subValue=value.
substring
Revival_Liang
·
2020-09-13 15:39
web
[leetcode131] Palindrome Partitioning 解题报告
131.PalindromePartitioning代码即解题思路github地址Givenastrings,partitionssuchthatevery
substring
ofthepartitionisapalindrome.Returnallpossiblepalindromepartitioningofs.Eaxmple
初沏的茶
·
2020-09-13 15:01
leetcode
(精华)2020年8月13日 C#基础知识点 DES加密封装
publicclassDesEncrypt{privatestaticbyte[]_rgbKey=ASCIIEncoding.ASCII.GetBytes(Constant.DesKey.
Substring
愚公搬代码
·
2020-09-13 14:25
C#
c#
C++找出字符串中最长的不含重复字符的子串
题目:找字符串中最长的不重复子串方法1:使用string和vectorstringFindLongestNonRepeat
Substring
(stringstr){if(str.empty())return
yishizuofei
·
2020-09-13 14:09
C++
给定一个字符串,请你找出其中不含有重复字符的 最长子串 的长度
判断集合的长度,当前的和之前的做比较,保存最大的长度数值*4.移除集合中重复字符串,因为是挨个循环,所以移除掉最左边的数据即可,可变集合中始终下表为0的数据*/publicintlengthOfLongest
Substring
1
w_xj
·
2020-09-13 14:53
算法题
java
算法
动态规划思想计算最大公共子串(c++代码)
问题:计算两个字符串的最大公共子串(longestcommoncontinue
substring
),注意不是子序列是子串,子串是要求字符之间是相连的,而序列则只要求是保持前后顺序不变.我们这里要求的是最长公共子串的长度
yisun03
·
2020-09-13 13:52
代码库
算法
c++
动态规划
最大公共子串
c++
PostgreSQL字符串截取替换
-09-1010:09:00""任务2016-10-1012:03:00""任务2016-12-2214:10:00"把包含"任务"的记录替换为"Job"updatet1setname='Job'||
substring
weixin_34087301
·
2020-09-13 13:37
找出字符串中所有对称的字符子串
5publicstaticvoidfindHuiWen(strings)6{7stringtmp=null;8for(inti=0;ii;j--)11{12while(s[i]==s[j])13{14tmp=s.
Substring
weixin_33709219
·
2020-09-13 13:13
SQL 查询一天中 每隔5分钟的数据 的sql语句
flag1varchar(32)set@flag1='c115:'2declare@flag2varchar(32)set@flag2='c116:'3selectSampleTime,4replace(
substring
weixin_30485379
·
2020-09-13 13:16
最长公共子串LCS问题(动态规划及备忘录方法)
动态规划法:packagelongestCommon
Substring
;publicclassLCS_1{publicstaticvoidmain(Stri
JeffLee0371
·
2020-09-13 13:32
算法
【leetcode 1371. 每个元音包含偶数次的最长子字符串】Python解题思路
参照官方题解写的python代码classSolution:deffindTheLongest
Substring
(self,s:str)->int:location=[-1]*32#保存各个状态最早出现位置
一杯敬月光
·
2020-09-13 12:26
leetcode
字符串
python
leetcode
给定一个字符串,请你找出其中不含有重复字符的最长子串的长度。
在优化算法那里事实上刚开始一直没理解一句话的意思里面的也就是说这里应该写错了,应该说是在s[i,j)范围内存在索引为j‘的值与s[j]相同,则将i改为此值索引publicclassSolution{publicintlengthOfLongest
Substring
吾处话凄凉
·
2020-09-13 12:13
算法
leetcode
算法
java
一个字符串,找出不含有重复字符的最长子串的长度
代码如下:classSolution(object):deflengthOfLongest
Substring
(self,s):“”":types:str:rtype:int“”"ifs:maxStr=s
qq_42151208
·
2020-09-13 12:22
js引用类型之基本包装类型new Boolean() 、new Number() 和new String()
vars1="sometext";vars2=s1.
substring
(2);/*上述步骤相当于以下过程:*(1)创建String类型的一个实例;*(2)在实例上调用指定
康柚子
·
2020-09-13 12:22
js
输入框保留两位小数,最大值为100
\d{0,2}$/.test(obj.value)){obj.value=obj.value;}else{obj.value=obj.value.
substring
(0,obj.value.length
饭啦啦
·
2020-09-13 12:42
基础知识
最长公共子序列
Giventwosequences,fifindthelengthofthelongestcommonsubsequence(LCS)Note:Asubsequenceisdifffferentfroma
substring
一只荣
·
2020-09-13 12:37
leetcode和机试题
[leetcode]获取字符串中字符不重复的最长子串的长度
publicclassTest{publicstaticvoidmain(String[]args){System.out.println(lengthOfLongest
Substring
("dvdf"
Freefish1994
·
2020-09-13 12:19
leetcode
给定一个字符串,找出不含有重复字符的最长子串的长度。
classSolution{publicintlengthOfLongest
Substring
(Strings){Mapmap=newHashMap();intmaxLength=0;intnow=0;
疯狂1024
·
2020-09-13 12:48
算法
给定一个字符串,找出不含有重复字符的最长子串的长度(javascript)
varlengthOfLongest
Substring
=function(s){varstr='';//存放当前最大无重复项字符串varlen=0;//存放当前当前最大无重复项字符串长度for(vari
miraiiiiiii
·
2020-09-13 12:41
Java中十六进制转换 Integer.toHexString()
为了显示一个byte型的单字节十六进制(两位十六进制表示)的编码,请使用:Integer.toHexString((byteVar&0x000000FF)|0xFFFFFF00).
substring
(6
junJZ_2008
·
2020-09-13 12:55
Java
JS判断FileUpload上传类型
document.getElementByIdx_x("FileUpload1");varfilename=fileupload.value;//获取该文件名的后缀名varextend=filename.
substring
孤星赶月_狗尾草
·
2020-09-13 11:15
编程语言
JavaScript
将给定字符串分割成多个小的回文串
20170827_将给定字符串分割成多个小的回文串//将给定字符串分割成多个小的回文串/*Givenastrings,partitionssuchthatevery
substring
ofthepartitionisapalindrome.Returnallpossiblepalindromepartitioningofs.Forexample
风暴计划
·
2020-09-13 11:16
C++字符串专栏
常见算法 - 求一个字符串的可以拆分成多个回文串的所有情况
给定一个字符串,求可以把它拆分多个回文字串的所有可能情况(leetcode131):Givenastrings,partitionssuchthatevery
substring
ofthepartitionisapalindrome.Returnallpossiblepalindromepartitioningofs.Example
b9x_
·
2020-09-13 11:09
笔记
算法
求字符串的最长回文串的O(n)解法
转载地址:http://leetcode.com/2011/11/longest-palindromic-
substring
-part-ii.html,声明:本文仅作为知识备份之用GivenastringS
Rechar_Deng
·
2020-09-13 11:44
PostgreSQL截取字符串
截取字符串一般用
substring
就够用了。对于有些长度不定的就没法用这个函数了,但还是有规律的,可以某个字符分割。
陌上花开7
·
2020-09-13 11:13
SQL
PostgreSQL
No.54-leetcode647-统计回文子串数量
压缩为dp[R],含义为必须以R结尾的回文串的数量classSolution{public:intcount
Substring
s(strings){intN=s.length();intdp[N+1];
ShellDawn
·
2020-09-13 11:01
leetcode
3.给定一个字符串,请你找出其中不含有重复字符的 最长子串 的长度。
原题链接:https://leetcode-cn.com/problems/longest-
substring
-without-repeating-characters/这道题题目要求很少,看起来也比较简单
SSS_get
·
2020-09-13 11:30
leetcode
java
函数整理
e.g..a提取字符串子集e.g.
substring
(filename,1,nchar(filename)-4)//去掉.csv后缀,如gdp.csv##length(v)计算向量长度nchar(c)计算字符长度
Harriet99
·
2020-09-13 11:21
R
leetcode题3 寻找字符串不包含重复字符的最长子字符串
决定每天刷一道leetcode题来维持编程和学习的状态问题表述Givenastring,findthelengthofthelongest
substring
withoutrepeatingcharacters.Examples
seektruthalone
·
2020-09-13 10:24
算法
求最长子串长度(java)
采用滑动窗口的方法publicstaticintlengthOfLongest
Substring
(Strings){intans=0;//map记录扫描后已存在的字符以及字符在原字符串序列中的位置Mapmap
TXW--CXY博客
·
2020-09-13 10:42
算法
java io流清空txt文件内容及填充文件内容
System.out.println(file.getPath());Stringpath=file.getPath();Stringfilename="test1.txt";//path=path.
substring
代码的更新者
·
2020-09-13 10:50
java
找出一个字符串中所有大于1的回文串数量
classSolution():'''找出一个字符串中所有大于1的回文串数量'''def
subString
(self,s):cnt=0forxinrange(len(s)):foriinrange(len
broccoli2
·
2020-09-13 10:00
leetcode
算法
leetcode
字符串
python
给定一个字符串,找到最长子串的长度,而不重复字符。
我的方法:(时间复杂度较大)publicstaticintlengthOfLongest
Substring
(Strings)
baixiao9898
·
2020-09-13 10:59
Fortran分割读取字符串数字混合文本行
利用函数index:INDEX(STRING,
SUBSTRING
,BACK)purpose:returnthestartingpositionofa
substring
withinastringWhenBACKmissingorBACK
an11455
·
2020-09-13 09:22
js通过数据中某个属性进行分组组合
*js分组处理数据*/vartime={},list=[];for(vari=0;i
substring
省钱兄
·
2020-09-13 09:00
微信小程序开发
上一页
55
56
57
58
59
60
61
62
下一页
按字母分类:
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
其他