http://acm.hdu.edu.cn/showproblem.php?pid=4632题意:一个字符串,有多少个subsequence是回文串。别人的题解:用dp[i][j]表示这一段里有多少个回文串,那首先dp[i][j]=dp[i+1][j]+dp[i][j-1],但是dp[i+1][j]...
分类:
Web程序 时间:
2014-07-23 16:31:51
阅读次数:
365
最近从TFS拿到一个很久没有人维护的项目,老是提示dll找不到。弱弱地研究了一下,原来是相对路径惹的祸。1. C#中相对路径的表示:. 表示当前目录,..表示上一级目录2. 工程中的引用 ..\..\..\..\..\..\..\Common\XX\XX\XX\v1.1.0.1105\X...
分类:
其他好文 时间:
2014-07-23 15:09:36
阅读次数:
209
Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is formed from the orig...
分类:
其他好文 时间:
2014-07-23 12:36:06
阅读次数:
209
Log4j与common-logging总网上搜了些Log4j与common-logging的介绍,记录下。一.Log4j1.简介Log4j是Apache的一个开放源代码项目使用Log4j,我们可以很方便的来记录日志.从http://www.apache.org/dist/logging/log4j...
分类:
其他好文 时间:
2014-07-22 22:42:15
阅读次数:
254
package com.tongyan.common.db;/** * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "Licens...
分类:
数据库 时间:
2014-07-22 22:42:12
阅读次数:
343
HDU 1159 Common Subsequence (动规)
最长公共子序列的模板题目。...
分类:
其他好文 时间:
2014-07-22 17:58:41
阅读次数:
247
Common Substrings
Time Limit: 5000MS
Memory Limit: 65536K
Total Submissions: 7082
Accepted: 2355
Description
A substring of a string T is defined as:
T(i, k)=TiTi+...
分类:
其他好文 时间:
2014-07-22 14:27:08
阅读次数:
314
好奇于Unity使用的mscrolib.dll和.Net Framework提供的mscrolib是否一致。 多语言标准通用对象运行时库(Microsoft Standard Common Object Runtime Library),描述:Microsoft Common Language Ru...
分类:
其他好文 时间:
2014-07-22 00:15:36
阅读次数:
217
Write a function to find the longest common prefix string amongst an array of strings.题解:以strs[0]为模板,每次挨个查看是否所有的串里面是否第i位上都和strs[0]一样,如果都一样,把i位置上的字符放到a...
分类:
其他好文 时间:
2014-07-21 23:31:00
阅读次数:
267
POJ 1159 Palindrome && HDU 1159 Common Subsequence...
分类:
其他好文 时间:
2014-07-21 23:27:29
阅读次数:
249