码迷,mamicode.com
首页 >  
搜索关键字:longest substring    ( 5540个结果
Leetcode-Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:其他好文   时间:2014-11-29 06:50:19    阅读次数:189
Binary String Matching
描述Given two strings A and B, whose alphabet consist only ‘0’ and ‘1’. Your task is only to tell how many times does A appear as a substring of B? For ...
分类:其他好文   时间:2014-11-29 00:03:11    阅读次数:442
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-11-28 17:51:41    阅读次数:188
根据条件截取url
public static void main(String[] args) { String url ="http://127.0.0.1:8080/teste/welcome/index.do?systemId=179#"; String ur=url.substring(0, url.inde...
分类:Web程序   时间:2014-11-28 15:49:35    阅读次数:136
SQL中SUBSTRING函数的用法
功能:返回字符、二进制、文本或图像表达式的一部分语法:SUBSTRING ( expression, start, length ) SQL 中的 substring 函数是用来抓出一个栏位资料中的其中一部分。这个函数的名称在不同的资料库中不完全一样:MySQL: SUBSTR(), SUBSTRI...
分类:数据库   时间:2014-11-28 11:44:17    阅读次数:252
Jquery获取背景图片src路径
例如获取body的背景:Jquery代码如下: var back = $('body').css('backgroundImage'); back.substring(start,end); //截取字符串 start 从第几个字符开始截取...
分类:Web程序   时间:2014-11-28 09:55:35    阅读次数:624
[LeetCode] Minimum Window Substring
题目:Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For example,S="ADOBECOD...
分类:Windows程序   时间:2014-11-28 06:18:27    阅读次数:309
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-11-28 06:10:44    阅读次数:172
LeetCode: Longest Valid Parentheses O(n)时间 O(1)空间
题目: Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. For "(()", the longest valid parentheses substrin...
分类:其他好文   时间:2014-11-27 23:42:23    阅读次数:196
[leetcode]
问题描述: 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 ...
分类:其他好文   时间:2014-11-27 20:32:31    阅读次数:135
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!