s-palindrome s-palindrome Let's call a string "s-palindrome" if it is symmetric about the middle of the string. For example, the string "oHo" is "s-pa ...
分类:
其他好文 时间:
2016-07-14 07:06:09
阅读次数:
231
题目大意:给出i,输出第i个镜像数,不能有前导0. 题解:从外层开始模拟 ...
分类:
其他好文 时间:
2016-07-13 11:57:18
阅读次数:
148
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Notice Have you consider that the string ...
分类:
其他好文 时间:
2016-07-10 23:15:57
阅读次数:
163
题目链接:https://leetcode.com/problems/palindrome-pairs/
题目:
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, ...
分类:
其他好文 时间:
2016-07-10 18:48:22
阅读次数:
186
Beautiful Palindrome Number Time Limit: 3000/1500 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1067 Accepted Submiss ...
分类:
其他好文 时间:
2016-07-09 23:47:01
阅读次数:
390
Description Pari has a friend who loves palindrome numbers. A palindrome number is a number that reads the same forward or backward. For example 12321 ...
分类:
其他好文 时间:
2016-07-09 16:24:37
阅读次数:
137
Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. Given a st ...
分类:
其他好文 时间:
2016-07-09 10:31:16
阅读次数:
140
学了kmp之后又学了hash来搞字符串。这东西很巧妙,且听娓娓道来。 这题的题意是:一个字符串如果是回文的,那么k值加1,如果前一半的串也是回文,k值再加1,以此类推,算出其k值。打个比方abaaba,k值为3,abaxxaba,k值为1。现在,给出一个串,让你求这个串的所有前缀(包括本身)的k值的 ...
分类:
其他好文 时间:
2016-07-06 21:33:06
阅读次数:
155