码迷,mamicode.com
首页 >  
搜索关键字:substring with conca    ( 3920个结果
[译]最长回文子串(Longest Palindromic Substring) Part II
问题:给定字符串S,求S中的最长回文子串。 本篇将讨论一个O(N)时间O(N)空间的算法,即著名的Manacher算法,并详细说明其时间复杂度为何是O(N)。
分类:其他好文   时间:2014-12-15 23:23:40    阅读次数:356
[LeetCode]Palindrome Partitioning
Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. For example, given s = "aab", Return [ ["aa","...
分类:其他好文   时间:2014-12-15 21:52:33    阅读次数:145
[LeetCode]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...
分类:其他好文   时间:2014-12-15 21:50:08    阅读次数:172
linux之SQL语句简明教程---SUBSTRING
SQL 中的 substring 函数是用来抓出一个栏位资料中的其中一部分。这个函数的名称在不同的资料库中不完全一样: MySQL: SUBSTR( ), SUBSTRING( )Oracle: SUBSTR( )SQL Server: SUBSTRING( ) 最常用到的方式如下 (在这里我们用 SUBSTR( ) 为例): SUBSTR (str, pos) 由 中,选出...
分类:数据库   时间:2014-12-15 20:26:51    阅读次数:165
LeetCode Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:其他好文   时间:2014-12-15 00:00:53    阅读次数:329
1124Js基础语法
html/JS等有不懂的,上这里http://w3school.com.cn/。全都告诉你!嘿嘿“不要告诉别人哦!”1、运算符比较运算符(7种):==/===/!=/>/====(全等于)2、字符串substring的用法3、练习题:累加求和(运用Js的方法)4、进制转换
分类:Web程序   时间:2014-12-14 09:26:25    阅读次数:202
LeetCode Longest Palindromic Substring
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:其他好文   时间:2014-12-14 00:38:30    阅读次数:161
获取URL的参数
function urlArgs(){ var args={}; var query=location.search.substring(1); var pairs=query.split('&'); for(var i=0;i<pairs.length;i++){ var pos=p...
分类:Web程序   时间:2014-12-13 20:30:43    阅读次数:154
mysql数据库中查询时间
项目中要对数据按时间处理,在数据库中,时间处理的格式如2014-12-09 06:30:17时间查询出来如下所示:现在要查询具体有哪天的数据,应用substring函数,SQL如下:select distinct substring(( start_time ) from 1 for 10) as ...
分类:数据库   时间:2014-12-13 13:25:42    阅读次数:222
Leetcode-Longest Substring with At Most Two Distinct Characters.
Given a string, find the length of the longest substring T that contains at most 2 distinct characters.For example, Given s = “eceba”,T is "ece" which...
分类:其他好文   时间:2014-12-13 06:07:09    阅读次数:137
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!