码迷,mamicode.com
首页 >  
搜索关键字:longest ordered subs    ( 3212个结果
Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:其他好文   时间:2016-08-22 22:57:42    阅读次数:98
LeetCode32 Longest Valid Parentheses
题目: Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. For "(()", th ...
分类:其他好文   时间:2016-08-22 21:47:24    阅读次数:146
csu 1551(线段树+DP)
1551: Longest Increasing Subsequence Again Description Give you a numeric sequence. If you can demolish arbitrary amount of numbers, what is the lengt ...
分类:其他好文   时间:2016-08-22 12:18:10    阅读次数:203
leetcode No104. Maximum Depth of Binary Tree
Question: 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. 找二叉树的最大深度 Algori...
分类:其他好文   时间:2016-08-22 10:53:34    阅读次数:132
Longest Substring Without Repeating Characters,求没有重复字符的最长字串
问题描述: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which th ...
分类:其他好文   时间:2016-08-21 19:46:57    阅读次数:104
算法比赛(1)----Longest Absolute File Path
Leetcode算法比赛题目之:Longest Absolute File Path 原文链接:https://leetcode.com/contest/1/problems/longest-absolute-file-path/ 图片格式: Java算法实现 ...
分类:编程语言   时间:2016-08-21 15:14:47    阅读次数:583
LeetCode- Binary Tree Longest Consecutive Sequence
Given a binary tree, find the length of the longest consecutive sequence path. The path refers to any sequence of nodes from some starting node to any ...
分类:其他好文   时间:2016-08-21 15:10:35    阅读次数:155
USACO(含training section)水题合集[5/未完待续]
(1) USACO2.1 Ordered Fractions 枚举 排序即可,注意1/1 (2) USACO1.5Number Triangles 基础DP (3) USACO1.2 Transformations 模拟 (4) USACO1.4Mother's Milk dfs,六种倒水方法,fi ...
分类:其他好文   时间:2016-08-20 00:08:09    阅读次数:142
Leetcode 159 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" whi ...
分类:其他好文   时间:2016-08-19 13:12:56    阅读次数:135
32. Longest Valid Parentheses
32. Longest Valid Parentheses Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parenthese ...
分类:其他好文   时间:2016-08-17 06:47:22    阅读次数:143
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!