码迷,mamicode.com
首页 >  
搜索关键字:substring with conca    ( 3920个结果
[Leetcode][JAVA] Palindrome Partitioning
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ofs.For example, giv...
分类:编程语言   时间:2014-10-26 11:31:30    阅读次数:243
[LeetCode] Longest Substring Without Repeating Characters (LinkedHashSet的妙用)
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. Fo...
分类:其他好文   时间:2014-10-25 07:04:13    阅读次数:208
JavaScript获取Function的名字
如何获取JavaScript中Function的名字是一个很基本的问题。可以通过将function转化成字符串,用substring取它的名字,或者使用ECMAScript 6中的Function.name的支持。此属性只有在IE下有可能不兼容。详见MDN.关于从字符串中获得其名字的方法如下 (转自...
分类:编程语言   时间:2014-10-24 23:27:27    阅读次数:416
String.subString引发的StringIndexOutOfBoundsException
首先看两个例子,通过subString方法获得字符串t,再通过t.charAt(3)方法获得字符串t的值中的第四个字符。[其中会利用反射机制,改变字符串s的值。](http://my.oschina.net/u/167082/blog/337066) 例子1: public c...
分类:其他好文   时间:2014-10-24 20:54:23    阅读次数:252
数据库截取字符串函数
MySQL数据库和SQLServer数据库的字符串截取函数比较MySQL字符串截取函数:SUBSTR(Stringstring,numstart,numlength)string是原字符串,start是起始位置(从1开始),length是截取字符串的长度;SQLServer字符串截取函数:SUBSTRING(Stringstring,numstart,numlength)string..
分类:数据库   时间:2014-10-24 19:04:06    阅读次数:235
LeetCode 132 Palindrome Partitioning II
Given a string s, partition s such that every substring of the partition is a palindrome. Return the minimum cuts needed for a palindrome partitioning of s. For example, given s = "aab", Return 1 s...
分类:其他好文   时间:2014-10-24 18:54:01    阅读次数:111
C# 截取字符串
C#经常用到的字符串的截取 在开发中我们经常需要截取字符串,很多初学者,不知道怎么做很好的截取字符串,下面是截取字符串过程中我们必须知道的以下函数:substring 函数、Remove 函数、indexOf函数. substring 函数 返回第一个参数中从第二个参数指定的位置开始、第三个参...
分类:Windows程序   时间:2014-10-24 18:07:15    阅读次数:216
安装Loopback网卡/回环网卡
$CurrentPath = $MyInvocation.MyCommand.Path.substring(0,$MyInvocation.MyCommand.Path.LastIndexOf('\')+1)$devcon = Join-Path $CurrentPath devcon.exe#使用...
分类:其他好文   时间:2014-10-23 18:55:19    阅读次数:157
网页爬虫框架jsoup介绍
序言:在不知道jsoup框架前,由于项目需求,需要定时抓取其他网站上的内容,便想到用HttpClient方式获取指定网站的内容,这种方法比较笨,就是通过url请求指定网站,根据指定网站返回文本解析。说白了HttpClient充当一下浏览器的角色,返回的文本需要自己处理,一般都是用string.indexOf或者string.subString方法处理。         当有一天发现jsoup这个...
分类:Web程序   时间:2014-10-23 00:11:44    阅读次数:181
leetcode第31题--Longest Valid Parentheses
Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest...
分类:其他好文   时间:2014-10-22 23:32:51    阅读次数:235
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!