码迷,mamicode.com
首页 >  
搜索关键字:palindrome    ( 1561个结果
SPOJ:The Next Palindrome(思维)
A positive integer is called a palindrome if its representation in the decimal system is the same when read from left to right and from right to left. ...
分类:其他好文   时间:2018-04-19 19:13:50    阅读次数:179
POJ - 3974 Palindrome
Andy the smart computer science student was attending an algorithms class when the professor asked the students a simple question, "Can you propose an ...
分类:其他好文   时间:2018-04-18 19:03:53    阅读次数:171
【leetcode】 9. palindrome number
@requires_authorization @author johnsondu @create_time 2015.7.13 9:48 @url [palindrome-number](https://leetcode.com/problems/palindrome-number/) /**** ...
分类:其他好文   时间:2018-04-18 11:46:38    阅读次数:148
HDU 4632 Palindrome subsequence(区间DP求回文子序列数)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4632 题目大意:给你若干个字符串,回答每个字符串有多少个回文子序列(可以不连续的子串)。解题思路: 设dp[i][j]为[i,j]的回文子序列数,那么得到状态转移方程: dp[i][j]=(dp[i+1 ...
分类:其他好文   时间:2018-04-17 00:49:42    阅读次数:192
POJ 3280 Cheapest Palindrome(区间DP求改成回文串的最小花费)
题目链接:http://poj.org/problem?id=3280 题目大意:给你一个字符串,你可以删除或者增加任意字符,对应有相应的花费,让你通过这些操作使得字符串变为回文串,求最小花费。解题思路:比较简单的区间DP,令dp[i][j]表示使[i,j]回文的最小花费。则得到状态转移方程: dp ...
分类:其他好文   时间:2018-04-17 00:49:34    阅读次数:200
Palindrome Number
第三道简单题。啊好懒啊已经不想做了 = =。这样暑假在家肯定会废。emm简单题一共200道的样子。我的目标是接下来的三个礼拜,每个礼拜做10道!!!希望回国前能做到50道。加油! 这道题考的是回文结构,之前我在网易的笔试里也碰到了回文结构的相关题目,回文结构大概比较容易被考察。 Example 2说 ...
分类:其他好文   时间:2018-04-15 13:38:46    阅读次数:123
336 Palindrome Pairs 回文对
给定一组独特的单词, 找出在给定列表中不同 的索引对(i, j),使得关联的两个单词,例如:words[i] + words[j]形成回文。示例 1:给定 words = ["bat", "tab", "cat"]返回 [[0, 1], [1, 0]]回文是 ["battab", "tabbat"] ...
分类:其他好文   时间:2018-04-14 23:43:17    阅读次数:292
palindrome 回文 /// Manacher算法
判断最长不连续回文 过程如图 判断最长连续回文 https://segmentfault.com/a/1190000008484167 Manacher模板 ...
分类:编程语言   时间:2018-04-14 00:39:10    阅读次数:194
234 Palindrome Linked List 回文链表
请检查一个链表是否为回文链表。 进阶:你能在 O(n) 的时间和 O(1) 的额外空间中做到吗? 详见:https://leetcode.com/problems/palindrome-linked-list/description/ 方法一: 方法二: 参考:https://www.cnblogs ...
分类:其他好文   时间:2018-04-09 14:57:02    阅读次数:146
266. Palindrome Permutation
原题链接: "https://leetcode.com/articles/palindrome permutation/" 这道题目很简单: Java / Created by clearbug on 2018/2/26. / public class Solution { public stati ...
分类:其他好文   时间:2018-04-06 20:20:24    阅读次数:128
1561条   上一页 1 ... 30 31 32 33 34 ... 157 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!