Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Example 2: 查找最长的回文子串,这道 ...
分类:
其他好文 时间:
2018-11-06 00:54:27
阅读次数:
110
Given a list of strings, you need to find the longest uncommon subsequence among them. The longest uncommon subsequence is defined as the longest subs ...
分类:
其他好文 时间:
2018-11-05 21:29:47
阅读次数:
207
20. https://leetcode.com/problems/valid-parentheses/description/ 32. https://leetcode.com/problems/longest-valid-parentheses/description/ 22. https:// ...
分类:
其他好文 时间:
2018-11-04 11:10:48
阅读次数:
134
Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters. This ...
分类:
其他好文 时间:
2018-11-03 14:12:27
阅读次数:
120
English: listening、speaking、reading、writing、translation 1. The more you sweat here, the less you'll bleed in battle. 2. You can finish the longest roa ...
分类:
其他好文 时间:
2018-11-03 02:24:42
阅读次数:
224
Given an unsorted array of integers, find the length of longest increasing subsequence. Example: Input: [10,9,2,5,3,7,101,18] Output: 4 Explanation: T ...
分类:
其他好文 时间:
2018-11-03 01:57:55
阅读次数:
114
https://leetcode.com/problems/longest-common-prefix/description/ Write a function to find the longest common prefix string amongst an array of strings ...
分类:
其他好文 时间:
2018-11-02 23:36:38
阅读次数:
103
Source https://onlinejudge.u-aizu.ac.jp/problems/ALDS1_10_C Description Time Limit : 1 sec , Memory Limit : 131072 KB Time Limit : 1 sec , Memory Limi ...
分类:
其他好文 时间:
2018-11-02 21:43:17
阅读次数:
164
public class Solution { public int lengthOfLongestSubstring(String s) { int n = s.length(); Set set = new HashSet(); int ans = 0, i = 0, j = 0; while ...
分类:
其他好文 时间:
2018-11-02 00:13:24
阅读次数:
104
https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/discuss/87739/Java-Strict-O(N)-Two-Pointer-Solution window分别为1-26 ...
分类:
其他好文 时间:
2018-10-31 12:28:58
阅读次数:
143