码迷,mamicode.com
首页 >  
搜索关键字:longest substring    ( 5540个结果
LeetCode3: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 for “abcabcbb” is “abc”, which the length is 3. For “...
分类:其他好文   时间:2015-07-13 00:51:06    阅读次数:112
js中substring和substr和slice的用法
1.substring 方法用于提取字符串中介于两个指定下标之间的字符substring(start,end)开始和结束的位置,从零开始的索引参数 描述start 必需。一个非负的整数,规定要提取的子串的第一个字符在 stringObject 中的位置。stop 可选。一个非负的整数...
分类:Web程序   时间:2015-07-12 17:20:54    阅读次数:154
[LeetCode] Longest Common Prefix
Use the strs[0] as the reference string and then compare it with the remaining strings from left to right. Once we find a string with length less than...
分类:其他好文   时间:2015-07-12 15:26:17    阅读次数:93
[LeetCode][Java] 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 valid parentheses substring is...
分类:编程语言   时间:2015-07-12 12:55:23    阅读次数:140
jQuery之常用且重要方法梳理(target,arguments,slice,substring,data,trigger)-(一)
1.jquery data(name)data() 方法向被选元素附加数据,或者从被选元素获取数据。$("#btn1").click(function(){ $("div").data("greeting", "Hello World");});$("#btn2").click(function(....
分类:Web程序   时间:2015-07-12 12:38:36    阅读次数:138
LeetCode:Longest Common Prefix
Problem:Write a function to find the longest common prefix string amongst an array of strings.Solution:题意要求求取字符串数组的最长公共前缀子串。从位置0开始,对每一个位置比较所有的字符串,直到遇到...
分类:其他好文   时间:2015-07-11 20:09:04    阅读次数:134
[LeetCode][Java] Substring with Concatenation of All Words
题目: You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concatenation of each word in wordsexactly o...
分类:编程语言   时间:2015-07-11 13:43:48    阅读次数:148
5:Longest Palindromic Substring
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longes...
分类:其他好文   时间:2015-07-11 09:00:02    阅读次数:101
3.Longest Substring Without Repeating Characters(string; DP)
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:其他好文   时间:2015-07-11 06:43:10    阅读次数:124
Leetcode & CTCI ---Day 1
Maximum Depth of Binary Tree (DFS, TREE)Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path fr...
分类:其他好文   时间:2015-07-10 13:17:22    阅读次数:99
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!