【题目】
Given a string S and a string T, count the number of distinct subsequences of T in S.
A subsequence of a string is a new string which is formed from the original string by deleting some (can be none) of the characters without disturbing the relati...
分类:
其他好文 时间:
2014-06-29 07:27:17
阅读次数:
210
题目:
Roman numerals come from the ancient Roman numbering system. They are based on specific letters of the alphabet which are combined to signify the sum (or, in some cases, the difference) of th...
分类:
其他好文 时间:
2014-06-20 12:27:09
阅读次数:
394
在上一篇《Android多线程研究(5)——线程之间共享数据》中对线程之间的数据共享进行了学习和研究,这一篇我们来看看如何解决多个线程之间的数据隔离问题,什么是数据隔离呢?比如说我们现在开启了两个线程,这两个线程都要同时给同一个全局变量data赋值,各个线程操作它赋值后的变量数据,这里就需要用到隔离。先看一段代码:import java.util.Random;
public class Th...
分类:
移动开发 时间:
2014-06-20 11:25:58
阅读次数:
321
接前文的注册模块,本篇是登录模块。主要包括登录主界面,和登录相关编写的LoginAction、LoginDao和LoginService。以及配置的Filter。下面按逻辑顺序记录详细过程和代码:一、在前文的index目录点击登录按钮后,通过javascript跳转至LoginAction。
function login(){
var th = document.form1;
if(...
分类:
数据库 时间:
2014-06-20 10:53:49
阅读次数:
385
/验证规则详细配置 public function rules() { // NOTE: you
should only define rules for those attributes that // will receive user inputs.
...
分类:
其他好文 时间:
2014-06-11 10:05:03
阅读次数:
180
Original Link: Cabarc OverviewApplies To:
Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1,
Windows Server 2003 with SP2Cabar...
分类:
Web程序 时间:
2014-06-11 09:14:55
阅读次数:
270
/*
* Copyright 2002-2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Y...
分类:
其他好文 时间:
2014-06-07 14:55:47
阅读次数:
249
By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23.
3
7 4
2 4 6
8 5 9 3
That is, 3 + 7 + 4 + 9 = 23.
Find th...
分类:
其他好文 时间:
2014-06-07 13:45:25
阅读次数:
189
mnesia在频繁写数据的过程可能会报错:** WARNING ** Mnesia is overloaded: {dump_log, write_threshold},可以看出,mnesia应该是过载了。这个警告在mnesia dump操作会发生这个问题,表类型为disc_only_copies 、disc_copies都可能会发生。文章将分析mnesia过载的原因,同时从mnesia dump数据角度来剖析这个问题,最后总结解决mnesia过载的方法和存在问题...
分类:
其他好文 时间:
2014-06-07 12:46:09
阅读次数:
387
atitit.404错误的排查流程总结
#----------jsp head errorPage=""
del zeu ok le.
#------resin 服务器配置问题。俩个应用配置到了同样的的文件夹..
paip.404err two app cfg one same dir
/ cant access
/app1 only can acces...
分类:
其他好文 时间:
2014-06-07 12:16:37
阅读次数:
267