Given a string which consists of lowercase or uppercase letters, find the length of the longest p ...
Find the largest palindrome made from the product of two n digit numbers. Since the result could be very large, you should return the largest palindrome mod . Example: Input: Output: Explanation: x , ...
2017-10-10 11:32 0 3768 推荐指数:
Given a string which consists of lowercase or uppercase letters, find the length of the longest p ...
Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. ...
[i] + words[j] is a palindrome. Example 1:Given wor ...
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example, "A man, a plan ...
partitioning of s. Example: 这道题是让找到把原字符串拆分成回文串的最小切割 ...
Given an integer n, find the closest integer (not including itself), which is a palindrome. The 'closest' is defined as absolute difference ...
Given a string s, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome you ...
题目:Maximum Product Subarray 这道题属于动态规划的题型,之前常见的是Maximum SubArray,现在是Product Subarray,不过思想是一致的。当然不用动态规划,常规方法也是可以做的,但是时间复杂度过高(TimeOut),像下面这种形式 ...