【题目】
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
字符串是字符,如“hello, world”或“"albatross”的有序集合。Swift字符串由String类型,这又代表字符类型的值的集合来表示。
Swift的字符串和字符类型提供了在代码中的文字工作快速,兼容Unicode的方式。该语法字符串创建和操纵轻便性和可读性,具有类似的语法C字符串。串级联很简单,只要用+运算符相加两个字符串,字符串和可变性是由管理一个常量或变量之间进行选择,就像...
分类:
其他好文 时间:
2014-06-20 13:37:30
阅读次数:
330
Linux的shell编程
1、什么是shell?
当一个用户登录Linux系统之后,系统初始化程序init就为每一个用户运行一个称为shell(外壳)的程序。
shell就是一个命令行解释器,它为用户提供了一个向Linux内核发送请求以便运行程序的界面系统级程序,用户可以用shell来启动、挂起、停止甚至是编写一些程序。一般的Linux系统都将bash作为默认的shell。...
分类:
系统相关 时间:
2014-06-20 12:33:31
阅读次数:
306
/*
ID:kevin_s1
PROG:numtri
LANG:C++
*/
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define MAXN 1001
//gobal v...
分类:
其他好文 时间:
2014-06-20 12:02:24
阅读次数:
192
#region ---- 数据绑定 -----
private void bd(int pageindex)
{
int rowcount = 0;
int pagesize = 0;
int pagecount = 0;
decimal cyfzhj = 0;
string Slqstring = ...
分类:
其他好文 时间:
2014-06-20 11:38:07
阅读次数:
211
各位小盆友使用前记得打开 GD 库的支持哦,附上代码。
<?php
/**
* 生成缩略图函数(支持图片格式:gif、jpeg、png和bmp)
* @author ruxing.li
* @param string $src 源图片路径
* @param int $width 缩略图宽度(只指定高度时进行等比缩放)
* @param int $wid...
分类:
Web程序 时间:
2014-06-20 10:20:32
阅读次数:
307
获取Exif信息
代表的是文件的头信息;
步骤:
步骤一:
// 获取指定的文件的头信息对象
ExifInterface exif = new ExifInterface("/sdcard/x.jpg");
步骤二:
获取指定的头信息:
// 获取指定的信息
// 获取拍摄时间
String time =exif.getAttribute(ExifInterface.TAG_D...
分类:
移动开发 时间:
2014-06-20 10:19:51
阅读次数:
335
今天看别人项目,看到别人使用了SwipeListView,Google一把,果然github上的,也参考了csdn上的几篇文章,然后自己写了个例子,分享给大家。
效果图:
嗯,看一眼SwipeListView的参数的设置:
If you decide to use SwipeListView as a view, you can define it in your xml l...
分类:
微信 时间:
2014-06-20 10:04:06
阅读次数:
461
代码清单:
<?php
/**
* 获取当前页面的完整 url
* @author ruxing.li
* @return string
*/
function getPageUrl(){
$url = (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443') ? 'https://' : 'http...
分类:
Web程序 时间:
2014-06-07 13:16:27
阅读次数:
250
package test;
public class NumberFormatTest {
static String[] units = { "", "十", "百", "千", "万", "十万", "百万", "千万", "亿",
"十亿", "百亿", "千亿", "万亿" };
static char[] numArray = { '零', '一', '二', '...
分类:
编程语言 时间:
2014-06-07 13:15:10
阅读次数:
230