题目链接 题目要求: Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring. For...
分类:
其他好文 时间:
2015-06-12 23:52:34
阅读次数:
120
1. Question求最长回文子串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...
分类:
其他好文 时间:
2015-06-12 23:49:08
阅读次数:
228
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 le...
分类:
其他好文 时间:
2015-06-12 23:40:02
阅读次数:
121
Problem Description:Given a string, find the length of the longest substring T that contains at most 2 distinct characters.For example, Given s =“eceb...
分类:
其他好文 时间:
2015-06-12 22:04:43
阅读次数:
103
This problem is not very intuitive at first glance. However, the final idea should be very self-explanatory. You visit each element in nums, and then ...
分类:
其他好文 时间:
2015-06-12 19:10:09
阅读次数:
103
1. Question求最长无重复字符子串。Given a string, find the length of the longest substring without repeating characters. For example, the longest substring withou...
分类:
其他好文 时间:
2015-06-12 16:48:13
阅读次数:
118
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:
其他好文 时间:
2015-06-12 00:33:10
阅读次数:
122
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 a binary...
分类:
其他好文 时间:
2015-06-11 19:26:53
阅读次数:
126
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-06-11 18:25:40
阅读次数:
104
1318: [Spoj744] Longest PermutationTime Limit: 10 SecMemory Limit: 162 MBSubmit: 361Solved: 215[Submit][Status][Discuss]Description给你一个序列A含有n个正整数(1#in...
分类:
其他好文 时间:
2015-06-11 18:23:22
阅读次数:
141