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
题目: 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
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
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
问题描述: 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
Leetcode算法比赛题目之:Longest Absolute File Path 原文链接:https://leetcode.com/contest/1/problems/longest-absolute-file-path/ 图片格式: Java算法实现 ...
分类:
编程语言 时间:
2016-08-21 15:14:47
阅读次数:
583
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
(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
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 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