Given a string s and a string t, check if s is subsequence of t. You may assume that there is only lower case English letters in both s ...
A sequence of numbers is called a wiggle sequence if the differences between successive numbers strictly alternate between positive and negative. The first difference if one exists may be either posi ...
2016-07-22 23:57 7 9419 推荐指数:
Given a string s and a string t, check if s is subsequence of t. You may assume that there is only lower case English letters in both s ...
Given an unsorted array nums, reorder it such that nums[0] < nums[1] > nums[2] < nums[3] ...
Given an unsorted array nums, reorder it in-place such that nums[0] <= nums[1] >= nums[2] <= nums[3].... Example: 这道题让我们求摆动排序 ...
Given an unsorted array nums, reorder it such that nums[0] < nums[1] > nums[2] < nums[3]... ...
Given a string s, find the longest palindromic subsequence's length in s. You may assume that the maximum length of s is 1000. Example 1:Input ...
Given an array of integers `A`, consider all non-empty subsequences of `A`. For any sequence S, le ...
Given an unsorted array return whether an increasing subsequence of length 3 exists or not in the array. Formally the function should: Return ...
Given a group of two strings, you need to find the longest uncommon subsequence of this group of two strings. The longest uncommon subsequence ...