可能写了个假算法 假设定义:含有一个欧拉路的图为类欧拉图 欧拉路的定义:一个无向连通图中,存在一条路径对所有边都遍历且仅遍历一次;判断方法:该连通图中度为奇数的点的个数不能超过2,即为0或者2 题目解法: 对每一条数据a,b,c,想象成a点与b点之间连了一天值为c的边,则此图共有4个点 问题变成求图 ...
分类:
其他好文 时间:
2018-09-09 00:38:06
阅读次数:
191
applicationContext.xml 文件抛出了这个异常信息。 解决方法: 需要在 namespace 后加上对应的 schemaLocation,如下所示: PS: Spring 的 schemaLocation 参考 http://www.springframework.org/sche ...
分类:
编程语言 时间:
2018-09-06 02:47:54
阅读次数:
411
题目如下: 解题思路:本题和【leetcode】97. Interleaving String非常相似,同样可以采用动态规划的方法。记dp[i][j] = 1或者0 表示pattern[0:i]是否匹配string[0:j] ,如果pattern[i] == string[j] 或者 pattern ...
分类:
其他好文 时间:
2018-09-01 12:32:01
阅读次数:
156
Acquiring Heap Dumps HPROF Binary Heap Dumps Get Heap Dump on an OutOfMemoryError One can get a HPROF binary heap dump on an OutOfMemoryError for Sun ...
分类:
其他好文 时间:
2018-08-30 13:43:57
阅读次数:
143
junit报错java.lang.Exception: No tests found matching 最近在学习Spring的过程中用到了Junit,然而中间遇到了个令人十分捉狂的报错。 代码如下: 仔细检查过代码应该是没有什么问题的,上网查了下,发现挺多朋友也遇到过这个坑爹的问题,最后找到解决方 ...
分类:
编程语言 时间:
2018-08-29 16:54:35
阅读次数:
273
现象:ERROR : The processing instruction target matching "[xX][mM][lL]" is not allowed. 异常解释:xml文件不能被解析,一般出现这样的问题在于xml格式上,并且问题多出现在xml文件的头部。 原因: (1)一般多是因为 ...
分类:
其他好文 时间:
2018-08-29 10:43:44
阅读次数:
139
* This example program shows how to use HALCON's correlation-based* matching. In particular it demonstrates the robustness of this method against* lin ...
分类:
其他好文 时间:
2018-08-29 01:10:11
阅读次数:
316
警告: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:jx-web' did not find a matching property. 翻译:警告: [设置属 ...
分类:
Web程序 时间:
2018-08-23 13:06:03
阅读次数:
138
Codeforces Round #504 (rated, Div. 1 + Div. 2, based on VK Cup 2018 Final) A. Single Wildcard Pattern Matching 题意就是匹配字符的题目,打比赛的时候没有看到只有一个" * ",然后就写挫了, ...
分类:
其他好文 时间:
2018-08-19 18:02:21
阅读次数:
217