valid-palindrome——判断带符号数字字母的字符串是否为回文

Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana
7次阅读

palindrome-partitioning I&II——回文切割、深度遍历

I:Given a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindrome partitioning
5次阅读

[LeetCode] Find the Closest Palindrome 寻找最近的回文串

 Given an integer n, find the closest integer (not including itself), which is a palindrome.The 'closest' is defined as absolute difference minim
19次阅读

【APIO2014】Palindromes

#103. 【APIO2014】Palindromes 统计 描述 提交 自定义测试给你一个由小写拉丁字母组成的字符串 ss。我们定义 ss 的一个子串的存在值为这个子串在 ss 中出现的次数乘以这个子串的长度
12次阅读

ural1297. Palindrome

1297. PalindromeTime limit: 1.0 secondMemory limit: 64 MBThe “U.S. Robots” HQ has just received a rather alarming anonymous letter. It sta
7次阅读

POJ3974 Palindrome

本文版权归ljh2000和博客园共有,欢迎转载,但须保留此声明,并给出原文链接,谢谢合作。  本文作者:ljh2000 作者博客:http://www.cnblogs.com/ljh2000-jump/转载请注明出处,侵权必究,保留最终解释权! DescriptionA
16次阅读

Light oj 1044 - Palindrome Partitioning(区间dp)

题目链接:http://lightoj.com/volume_showproblem.php?problem=1044dp[i][j]表示i到j直接的最小回文区间个数,直接看代码 1 #include <bits/stdc++.h> 2 using namespace std; 3 co
14次阅读

[LeetCode] Longest Palindrome 最长回文串

 Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters
22次阅读

longest-palindrome

https://leetcode.com/problems/longest-palindrome/public class Solution { public int longestPalindrome(String s) { char []charr = s.toCharArr
14次阅读

Codeforces Beta Round #7 D. Palindrome Degree manacher算法+dp

题目链接:http://codeforces.com/problemset/problem/7/DD. Palindrome Degreetime limit per test1 secondmemory limit per test256 megabytes问题描述String s of leng
40次阅读