Given an unsorted array of integers, find the length of longest increasing subsequence. Example: Note: There may be more than one LIS combination, it ...
分类:
编程语言 时间:
2018-06-29 01:08:26
阅读次数:
362
The Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be considered as a reflection of the s ...
分类:
其他好文 时间:
2018-06-26 18:37:31
阅读次数:
138
Given an unsorted array of integers, find the length of longest increasing subsequence. Example: Note: There may be more than one LIS combination, it ...
分类:
其他好文 时间:
2018-06-24 17:56:21
阅读次数:
157
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:
其他好文 时间:
2018-06-24 14:02:55
阅读次数:
154
Among all the factors of a positive integer N, there may exist several consecutive numbers. For example, 630 can be factored as 3*5*6*7, where 5, 6, a... ...
分类:
其他好文 时间:
2018-06-23 17:15:46
阅读次数:
238
Given a string, you are supposed to output the length of the longest symmetric sub-string. For example, given "Is PAT&TAP symmetric?", the longest sym ...
分类:
其他好文 时间:
2018-06-23 14:32:36
阅读次数:
158
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. Example 1: Exampl ...
分类:
其他好文 时间:
2018-06-21 11:36:27
阅读次数:
165
给定一个字符串,找出不含有重复字符的最长子串的长度。 示例: 给定 "abcabcbb" ,没有重复字符的最长子串是 "abc" ,那么长度就是3。 给定 "bbbbb" ,最长的子串就是 "b" ,长度是1。 给定 "pwwkew" ,最长子串是 "wke" ,长度是3。请注意答案必须是一个子串, ...
分类:
其他好文 时间:
2018-06-20 22:45:14
阅读次数:
192
5. Longest Palindromic Substring 题目描述和难度 + 题目描述: 给定一个字符串 s,找到 s 中最长的回文子串。你可以假设?s 的最大长度为1000。 示例 1: 输入: "babad" 输出: "bab" 注意: "aba"也是一个有效答案。 示例 2: 输入: ...
分类:
其他好文 时间:
2018-06-20 14:44:00
阅读次数:
163
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-06-18 23:47:35
阅读次数:
230