POJ3974 Palindrome

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

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
5次阅读

[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
15次阅读

longest-palindrome

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

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
17次阅读

Palindrome Partitioning

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

Palindrome Partitioning II Leetcode

  Given a string s, partition s such that every substring of the partition is a palindrome.Return the minimum cuts needed for
11次阅读

Ural 2040. Palindromes and Super Abilities 2 回文自动机

2040. Palindromes and Super Abilities 2题目连接:http://acm.timus.ru/problem.aspx?space=1&num=2040DescriptionDima adds letters s1, …, sn one by one to
20次阅读

[LintCode] Valid Palindrome 验证回文字符串

 Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.NoticeHave you consider that the st
14次阅读

Palindrome Number

bool isPalindrome(int x) { if (x < 0)return false; // int d = 1; while (x / d >= 10)d *= 10; w
4次阅读