一开始采用递归写,TLE。
class Solution {
public:
bool flag;
int n,m;
void dfs(int id0,const char *s,int id1,const char *p){
if(flag)return;
if(id0>=n){
if(id1>=m)flag=1;
else{
int j=0;
whi...
分类:
其他好文 时间:
2014-11-09 15:18:20
阅读次数:
225
搭建ssh框架,在配置完applicationContext.xml测试时报daoImpl的no matching editors or conversion strategy found。。。上网搜了一下,在里加上proxy-target-class="true" 。。意思是代理目标类设为true...
分类:
其他好文 时间:
2014-11-06 19:19:08
阅读次数:
240
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:hczm' did not find a matchin...
分类:
Web程序 时间:
2014-11-04 16:43:33
阅读次数:
228
Binary String Matching描述Given two strings A and B, whose alphabet consist only ‘0’ and ‘1’. Your task is only to tell how many times does A appear as ...
分类:
其他好文 时间:
2014-11-02 16:09:51
阅读次数:
151
可能遇到的问题: 错误: java.security.cert.CertificateException: No name matching localhost found 原因: keystore里没有名字为localhost的信息 解决方法: 使用keytool创建public-private ...
分类:
其他好文 时间:
2014-10-31 18:44:24
阅读次数:
182
Spatial Pyramid Matching看了很多关于SPM的介绍,但是网络上的资源大多都是对论文Beyond bags of features: Spatial pyramid matching for recognizing natural scene categories的直接翻译,关于...
分类:
其他好文 时间:
2014-10-28 00:38:21
阅读次数:
294
Implement wildcard pattern matching with support for '?' and '*'.
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequence).
The matching should cover t...
分类:
其他好文 时间:
2014-10-26 13:08:38
阅读次数:
172
作者:jostree转载请注明出处http://www.cnblogs.com/jostree/p/4051286.html稳定匹配问题:有N男N女,每个人对于异性都一个排名,先需要得到一种稳定的匹配,即不会出现一个匹配中的人与另一个匹配中的异性对对方的排名均高于目前配对的人的排名。shapley算...
分类:
编程语言 时间:
2014-10-26 06:45:04
阅读次数:
224
Gale_Sharpley Algorithm, Stable Matching...
分类:
其他好文 时间:
2014-10-26 00:27:08
阅读次数:
262
主要介绍MP(Matching Pursuits)算法和OMP(Orthogonal Matching Pursuit)算法[1],这两个算法尽管在90年代初就提出来了,但作为经典的算法,国内文献(可能有我没有搜索到)都仅描写叙述了算法步骤和简单的应用,并未对其进行详尽的分析,国外的文献还是分析的非...
分类:
编程语言 时间:
2014-10-22 19:43:41
阅读次数:
301