码迷,mamicode.com
首页 >  
搜索关键字:palindromic    ( 595个结果
Longest Palindromic Substring
[leetcode]Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring....
分类:其他好文   时间:2014-10-02 13:30:42    阅读次数:217
[LeetCode] Longest Palindrome Substring 详细分析
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring. 面DP题的考官都是神经病。。(吐...
分类:其他好文   时间:2014-10-01 13:15:31    阅读次数:242
[Leetcode] Longest Palindromic Substring
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:其他好文   时间:2014-09-30 17:19:19    阅读次数:173
[ACM] ZOJ 3816 Generalized Palindromic Number (DFS,暴力枚举)
Generalized Palindromic Number Time Limit: 2 Seconds      Memory Limit: 65536 KB A number that will be the same when it is written forwards or backwards is known as a palindromic number. For e...
分类:其他好文   时间:2014-09-28 12:56:12    阅读次数:242
[数位dp] lightoj 1205 Palindromic Numbers
题意:给定范围内是回文数的个数。 思路:...
分类:其他好文   时间:2014-09-24 22:14:18    阅读次数:178
Longest Palindromic Substring -LeetCode
题目 Given a string s,find the longest palindromic substring in S.You may assume that the maximum length of S is 1000,and there exist one unique longes....
分类:其他好文   时间:2014-09-17 21:46:02    阅读次数:238
Longest Palindromic Substring[leetcode]
实现了两种方法,一种是DP,用循环做的,递归的话更简单。 string longestPalindrome(string s) { int n = s.size(); bool dp[1001][1001]; int maxl = 1; int maxs = 0; for (int i = n - 1; i >= 0...
分类:其他好文   时间:2014-09-14 12:53:07    阅读次数:190
leetcode - Longest Palindromic Substring
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:其他好文   时间:2014-09-14 12:49:37    阅读次数:214
zoj 3816 Generalized Palindromic Number (根据对称性来搜)
Generalized Palindromic Number Time Limit: 2 Seconds      Memory Limit: 65536 KB A number that will be the same when it is written forwards or backwards is known as a palindromic number. For ...
分类:其他好文   时间:2014-09-12 11:59:43    阅读次数:186
ZOJ3816-Generalized Palindromic Number(DFS数位搜索)
Generalized Palindromic Number Time Limit: 2 Seconds      Memory Limit: 65536 KB A number that will be the same when it is written forwards or backwards is known as a palindromic number. For exa...
分类:其他好文   时间:2014-09-11 13:55:32    阅读次数:215
595条   上一页 1 ... 53 54 55 56 57 ... 60 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!