题目描述: Given an unsorted array of integers, find the length of longest increasing subsequence. Example: Note: There may be more than one LIS combinatio ...
分类:
其他好文 时间:
2018-06-03 14:30:57
阅读次数:
142
Given a group of two strings, you need to find the longest uncommon subsequence of this group of two strings. The longest uncommon subsequence is defi ...
分类:
其他好文 时间:
2018-06-03 14:20:25
阅读次数:
146
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Input: "babad" Output: ...
分类:
其他好文 时间:
2018-06-02 12:55:40
阅读次数:
157
class Solution { public: int findNumberOfLIS(vector& nums) { if (nums.size() == 0) return 0; pair res = {0, 0}; // vector> dp(nums.size(), {1,1}); // ... ...
分类:
其他好文 时间:
2018-06-01 16:20:29
阅读次数:
112
question: Suppose that we use insertion sort on a randomly ordered array where elements hava only one of three values. Is the running time linear, qua ...
分类:
其他好文 时间:
2018-05-29 20:34:20
阅读次数:
156
Given a sequence of N pairs of integers, find the length of the longest increasing subsequence of it. An increasing sequence A1..An is a sequence such ...
分类:
其他好文 时间:
2018-05-29 00:11:01
阅读次数:
119
A string is finite sequence of characters over a non empty finite set Σ. In this problem, Σ is the set of lowercase letters. Substring, also called fa ...
分类:
其他好文 时间:
2018-05-28 17:24:28
阅读次数:
161
题目:Longest Palindromic Substring Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. E ...
分类:
其他好文 时间:
2018-05-27 15:39:22
阅读次数:
183
vector处理字符串,老司机,你值得拥有 ...
分类:
其他好文 时间:
2018-05-27 12:05:23
阅读次数:
127
题目:Longest Substring Without Repeating Characters Given a string, find the length of the longest substring without repeating characters. Examples: Giv ...
分类:
其他好文 时间:
2018-05-26 23:26:09
阅读次数:
206