码迷,mamicode.com
首页 >  
搜索关键字:longest ordered subs    ( 3212个结果
leetcode--3
1. 题目:Longest Substring Without Repeating CharactersGiven a string, find the length of the longest substring without repeating characters. For example...
分类:其他好文   时间:2015-06-08 21:19:56    阅读次数:106
POJ 1270 Following Orders 拓扑排序全输出
Description Order is an important concept in mathematics and in computer science. For example, Zorn's Lemma states: ``a partially ordered set in which...
分类:编程语言   时间:2015-06-08 18:54:31    阅读次数:121
[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 for “abcabcbb” is “abc”, which the length is 3. For “...
分类:其他好文   时间:2015-06-08 17:32:43    阅读次数:136
LeetCode题目总结分类
注:此分类仅供大概参考,没有精雕细琢。有不同意见欢迎评论~利用堆栈:http://oj.leetcode.com/problems/evaluate-reverse-polish-notation/http://oj.leetcode.com/problems/longest-valid-paren...
分类:其他好文   时间:2015-06-08 08:23:23    阅读次数:119
[LeetCode] Longest Substring Without Repeating Characters
Well, there many ways to solve this problem. Let's first look at a naive solution.The basic idea is simple. Starting from the first character of the s...
分类:其他好文   时间:2015-06-07 21:31:03    阅读次数:128
Java for LeetCode 199 Binary Tree Right Side View
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. For exa...
分类:编程语言   时间:2015-06-07 18:38:54    阅读次数:200
Project Euler:Problem 50 Consecutive prime sum
The prime 41, can be written as the sum of six consecutive primes: 41 = 2 + 3 + 5 + 7 + 11 + 13 This is the longest sum of consecutive primes that adds to a prime below one-hundred. The longest s...
分类:其他好文   时间:2015-06-07 17:35:13    阅读次数:129
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...
分类:其他好文   时间:2015-06-06 14:57:54    阅读次数:120
LeetCode 14:Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings.求最长公共前缀:以第一个字符串为模板比较之后的字符串即可。 1 public class Solution { 2 pu...
分类:其他好文   时间:2015-06-06 10:33:58    阅读次数:102
LeetCode 3:LongestSubString
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:其他好文   时间:2015-06-06 10:25:13    阅读次数:115
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!