把回文串的相等关系连一下,发现最后要求的是一笔画问题 注意到奇数长度的中间有一个单独没有连线的,所以a数组至多有两个奇数值 如果没有奇数,那么b在最前面放一个1,然后把a[1]~a[m 1]放上去,这样就是错位着一笔画了,然后剩下一个奇数值连成若干2中间一个1的样子; 如果一个奇数,那么把奇数放到最 ...
分类:
其他好文 时间:
2019-05-24 23:55:07
阅读次数:
227
题目描述 Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Example 2: Exampl ...
分类:
其他好文 时间:
2019-05-24 19:02:58
阅读次数:
104
Palindrome subsequence Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65535 K (Java/Others)Total Submission(s): 4513 Accepted Submission( ...
分类:
其他好文 时间:
2019-05-23 22:56:16
阅读次数:
161
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For the purpose of this problem, w ...
分类:
其他好文 时间:
2019-05-22 20:46:14
阅读次数:
78
微信公众号: "内核小王子" 关注可了解更多关于数据库,JVM内核相关的知识; "如果你有任何疑问也可以加我pigpdong" [^1] 前言 前面我们了解了,服务调用方和服务提供方,如何能够通过注册中心做到水平扩展,从而满足高可用和高并发,那么服务之间如何才能实现相互调用呢? 综合上一节的内容,服 ...
分类:
其他好文 时间:
2019-05-21 16:05:17
阅读次数:
132
send:发文件:nc -l 9001 <test2.sh 传文件夹:tar cf - data | pigz -1 | nc -l 9021 recive: 收文件夹: nc 192.168.50.191 9021| pigz -d | tar xvf - 收文件:nc 172.16.29.171 ...
分类:
其他好文 时间:
2019-05-19 11:47:58
阅读次数:
109
125. Valid Palindrome Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For the purp ...
分类:
Web程序 时间:
2019-05-14 20:41:16
阅读次数:
167
Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters. This ...
分类:
其他好文 时间:
2019-05-10 23:59:33
阅读次数:
228
PIGS Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 15721 Accepted: 7021 Description Mirko works on a pig farm that consists of M locked p ...
分类:
其他好文 时间:
2019-05-08 10:50:41
阅读次数:
127