码迷,mamicode.com
首页 >  
搜索关键字:longest substring    ( 5540个结果
LeetCode(3)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 ...
分类:其他好文   时间:2015-05-13 19:51:47    阅读次数:145
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 leaf node./** * Definition for binary tree * stru...
分类:其他好文   时间:2015-05-13 19:42:48    阅读次数:143
freemarker基本知识总结
1、取出内容${} 例如,${document.fileName}2、 ${cms.substring(document.title, 20, "...")} ${cms.substring(document.title, 18, "...")} ${cms.substring(document.t...
分类:其他好文   时间:2015-05-13 19:22:03    阅读次数:126
LeetCode-Longest Consecutive Sequence
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The longest ...
分类:其他好文   时间:2015-05-13 00:42:12    阅读次数:100
Leetcode第五题_Longest Palindromic Substring
Longest Palindromic SubstringGiven 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 longest palindromic substrin...
分类:其他好文   时间:2015-05-12 23:09:34    阅读次数:163
一起刷LeetCode5-Longest Palindromic Substring
发现自己原来掌握的一下算法,都忘掉了,啊啊啊------------------------------------------------------------------------------------------------------Longest Palindromic Subst....
分类:其他好文   时间:2015-05-12 22:47:52    阅读次数:217
【Longest Valid Parentheses】cpp
题目:Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the long...
分类:其他好文   时间:2015-05-12 20:40:49    阅读次数:88
Minimum Window Substring
https://leetcode.com/problems/minimum-window-substring/Given a string S and a string T, find the minimum window in S which will contain all the charac...
分类:Windows程序   时间:2015-05-12 15:04:04    阅读次数:163
Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings. class Solution { public: string longestCommonPrefix(vector& strs) { if(strs.size()==0) return ""; ...
分类:其他好文   时间:2015-05-12 09:37:20    阅读次数:112
Longest Palindromic Substring
public class Solution { public String longestPalindrome(String s) { if (s == null || s.length() == 0) { return null; } ...
分类:其他好文   时间:2015-05-12 09:16:55    阅读次数:161
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!