码迷,mamicode.com
首页 >  
搜索关键字:回文    ( 4174个结果
c# 单个文件上传至服务器
#region 单个文件上传至服务器/// /// 单个文件上传至服务器/// /// 接收文件资源的URI, 例如: http://xxxx/Upload.aspx?UID=11111/// 要发送的资源文件, 例如: @"D:\workspace\WebService 相关.doc/// 返回文...
分类:其他好文   时间:2014-07-10 09:59:22    阅读次数:201
bzoj 2565 manacher
2682. 【WC2012选拔12.17】最长双回文串(Standard IO)Time Limits:2000 msMemory Limits:524288 KBDescription 顺序和逆序读起来完全一样的串叫做回文串。比如acbca是回文串,而abc不是(abc的顺序为“abc”,逆...
分类:其他好文   时间:2014-07-07 19:24:57    阅读次数:286
回文词
#include #include #include #include using namespace std;const char *rev = "A 3 HIL JM O 2TUVWXY51SE Z 8 ";//字符A-9的镜像字符,没有镜像则为空格const char * msg[...
分类:其他好文   时间:2014-07-07 13:49:37    阅读次数:157
PHP魔术变量和魔术方法
基础知识:魔术变量和魔术方法魔术变量:最初PHP魔术变量的出现主要是为了方便开发者调试PHP的代码;当然也可以利用这个实现特殊需求。在写法上魔术变量前后都有两个下划线。如:_LINE_:返回文件中的当前行号,我们在定位错误的时候经常用到。魔术方法:主要是随着PHP的面向对象特性出现的(出就是PHP5...
分类:Web程序   时间:2014-07-07 11:25:15    阅读次数:198
【LeetCode】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: Panama" is a palindrome. "race a car" i...
分类:其他好文   时间:2014-07-02 09:49:04    阅读次数:271
UVA 12718 Dromicpalin Substrings(寻找字符串连续子串的回文)
UVA 12718 Dromicpalin Substrings(寻找字符串连续子串的回文)...
分类:其他好文   时间:2014-07-02 09:45:05    阅读次数:214
UVa401 回文词
PalindromesA regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string"ABCDEDCBA"is a palindr...
分类:其他好文   时间:2014-07-01 18:52:11    阅读次数:460
[题解]UVA11027 Palindromic Permutation
链接:http://vjudge.net/problem/viewProblem.action?id=19602描述:给出一个字符串,求重新排列后第n个回文串,若没有则输出”XXX“。思路:组合数问题。 首先考虑什么时候有回文串。很简单,数量为奇数的字母不超过1个。且这个字母只能是在字符串的中...
分类:其他好文   时间:2014-07-01 17:12:53    阅读次数:249
[算法]manachar最长回文子串
现给定一个已知的字符串str[],现在想要在O(n)的时间复杂度之内求出一个最长的回文子字符串(正着和倒着顺序读一致)。Manacher最早发现了可以用O(n)的时间复杂度来解决该问题,所以这种方法称之为Manacher算法。#include using namespace std;int min(...
分类:其他好文   时间:2014-07-01 13:11:29    阅读次数:245
每日算法之三十八:Anagrams
Given an array of strings, return all groups of strings that are anagrams. Note: All inputs will be in lower-case. 回文字符串是指: 两个字符串的字符个数完全相同,这两个字符串是Anagrams。因此Anagrams至少指俩字符串。找出字符集合中的Anagrams组。...
分类:其他好文   时间:2014-07-01 08:42:11    阅读次数:250
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!