码迷,mamicode.com
首页 >  
搜索关键字:palindrome    ( 1561个结果
LightOJ 1044 Palindrome Partitioning(简单字符串DP)
A palindrome partition is the partitioning of a string such that each separate substring is a palindrome. For example, the string "ABACABA" could be p ...
分类:其他好文   时间:2018-07-08 20:11:12    阅读次数:149
SP7586 NUMOFPAL - Number of Palindromes(回文树)
题意翻译 求一个串中包含几个回文串 题目描述 Each palindrome can be always created from the other palindromes, if a single character is also a palindrome. For example, the ...
分类:其他好文   时间:2018-06-30 10:52:06    阅读次数:170
479. Largest Palindrome Product
问题描述: 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 pa ...
分类:其他好文   时间:2018-06-25 11:02:23    阅读次数:249
Cheapest Palindrome [POJ3280] [区间DP] [经典]
一句话题意:每个字母添加和删除都相应代价(可以任意位置 增加/删除),求把原串变成回文串的最小代价 Description 保持对所有奶牛的跟踪是一项棘手的任务,因此农场主约翰已经安装了一个系统来实现自动化。他在每头奶牛身上安装了一个电子ID标签,系统将在奶牛经过扫描仪时读取。每个ID标记是从字母表 ...
分类:其他好文   时间:2018-06-21 22:25:32    阅读次数:147
[Leetcode] 336. Palindrome Pairs_Hard
Given a list of unique words, find all pairs of distinct indices (i, j) in the given list, so that the concatenation of the two words, i.e. words[i] + ...
分类:其他好文   时间:2018-06-21 11:34:26    阅读次数:115
680. Valid Palindrome II
问题描述: Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1: Example 2: Note: 解题思路: ...
分类:其他好文   时间:2018-06-18 10:26:30    阅读次数:170
Cheapest Palindrome(区间DP)
描述 Keeping track of all the cows can be a tricky task so Farmer John has installed a system to automate it. He has installed on each cow an electronic ...
分类:其他好文   时间:2018-06-15 22:43:19    阅读次数:213
Valid Palindrome LeetCode Java
描述Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoringcases.For example,”A man, a plan, a canal: Pan ...
分类:编程语言   时间:2018-06-11 23:41:52    阅读次数:441
1136 A Delayed Palindrome (20)
Consider a positive integer N written in standard notation with k+1 digits a~i~ as a~k~...a~1~a~0~ with 0 <= a~i~ < 10 for all i and a~k~ > 0. Then N ...
分类:其他好文   时间:2018-06-09 23:20:40    阅读次数:199
leetcode-409-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 ...
分类:其他好文   时间:2018-06-07 19:18:44    阅读次数:170
1561条   上一页 1 ... 27 28 29 30 31 ... 157 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!