http://poj.org/problem?id=3974 题目大意: 求最大回文子串长度。 ———————————————————— 马拉车板子题。 马拉车讲解先割。 (测试过如果写成函数的话会很慢(2000+ms),这么写是(200+ms),所以不美观就不美观吧)。 ...
分类:
其他好文 时间:
2017-12-03 14:48:05
阅读次数:
160
Java中从键盘输入多个整数 Java常见排序算法 NOIP2014联合权值[DFS] 数据结构复习之排序篇 tku宰旨亓http://p.baidu.com/pai/center?uid=98c9616263313661343933e4bb&type=hogavx甭承儆b5oasf僖宜欢http: ...
分类:
其他好文 时间:
2017-12-03 11:39:07
阅读次数:
257
Given a singly linked list, determine if it is a palindrome. Follow up:Could you do it in O(n) time and O(1) space? 题目标签:Linked List 题目给了我们一个 linked l ...
分类:
其他好文 时间:
2017-12-02 12:58:04
阅读次数:
110
A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCBA" is a palindrome becau ...
分类:
其他好文 时间:
2017-11-30 21:44:26
阅读次数:
171
基于Spring Cloud、JWT 的微服务权限系统设计 https://gitee.com/log4j/pig https://github.com/kioyong/spring-cloud-demo ...
分类:
编程语言 时间:
2017-11-29 16:20:20
阅读次数:
620
题意 给一个储钱罐,已知空的储钱罐和装了硬币的储钱罐的质量,然后给了n种硬币的质量和价值,问储钱罐里最少有多少钱 分析 完全背包 注意要初始化为 INF,要正好装满,如果结果是INF,输出This is impossible. 初始化dp[0] = 0,其余都为INF,因为只有开始时0转移过来的才是 ...
分类:
其他好文 时间:
2017-11-22 13:12:10
阅读次数:
164
``` import java.util.Arrays; /** * * Source : https://oj.leetcode.com/problems/palindrome-partitioning-ii/ * * Given a string s, partition s such that... ...
分类:
其他好文 时间:
2017-11-21 22:10:36
阅读次数:
129
``` import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * Source : https://oj.leetcode.com/problems/palindrome-partitionin... ...
分类:
其他好文 时间:
2017-11-21 22:04:35
阅读次数:
141
poj-2486-Apple Tree Apple Tree Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 11210 Accepted: 3774 Description Wshxzt is a lovely girl. Sh ...
分类:
移动开发 时间:
2017-11-18 21:04:53
阅读次数:
186
Determine whether an integer is a palindrome. Do this without extra space. 判断一个数是不是回文数 C++(182ms): Java(188ms): ...
分类:
其他好文 时间:
2017-11-16 15:50:43
阅读次数:
116