/*to solve the problem ,i think we can use stack to maintain the numbers,and list to keep it sorted,which is very important to find the Median number....
分类:
其他好文 时间:
2014-09-15 19:07:19
阅读次数:
181
word-wrap:所有浏览器都支持,允许长单词或URL地址换行到下一行。对长串的英文不起作用word-break在恰当的断字点进行换行。word-wrap:break-word;word-break:break-all:所有主流浏览器都支持,允许在单词内换行。word-break:keep-all...
分类:
其他好文 时间:
2014-09-15 17:20:19
阅读次数:
191
因为一看到有关子串就主动的联想后缀数组所有后缀的前缀去重后就是所有子串(好像是废话)这样就可以得到每个后缀的子串个数。二分查找到第k个所在的位置。在二分处理所有可以出现该串的sa区间。最小就是维护sa数组。 1 //rank从0开始 2 //sa从1开始,因为最后一个字符(最小的)排在第0位 ...
分类:
其他好文 时间:
2014-09-15 14:10:49
阅读次数:
202
Map构造Map不可变:val map = Map("sa" -> 1, "s" -> 2)map("sa") = 3 // errorval emptyMap = newscala.collection.immutable.HashMap[String, Int]可变:val map2 = sca...
分类:
其他好文 时间:
2014-09-15 14:07:08
阅读次数:
252
原文地址:
#include
#include
#include
void multiply(char* a, char* b, char* c)
{
int sa = 0;
int sb = 0;
int i,j;
int *result = NULL;
if ((NULL == a) || (NULL == b) || (NULL == c))
{
retu...
分类:
其他好文 时间:
2014-09-15 01:06:58
阅读次数:
207
Working on customer case today I ran into interesting problem – query joining about 20 tables (thank you ORM by joining all tables connected with fore...
分类:
数据库 时间:
2014-09-13 17:17:05
阅读次数:
294
假设程序要被dos系统加载到sa:0000的内存中,在这个地址的内存开始会有256个字节的PSP程序,用于加载程序和dos系统的通信。ds中的地址为sa。真正的程序会在这256个字节之后。所以真正程序的地址是:sa+10H:0000。cs中的地址为:sa+10h为什么是10h,因为段地址要左偏移4位...
分类:
编程语言 时间:
2014-09-13 11:58:15
阅读次数:
196
Description
The little cat is so famous, that many couples tramp over hill and dale to Byteland, and asked the little cat to give names to their newly-born babies. They seek the name, and at the sa...
分类:
其他好文 时间:
2014-09-13 10:40:55
阅读次数:
197
对于LINUX SA来说,服务器性能是需要我们特别关注的,包括CPU、IO、内存等等系统的优化变得至关重要,这里转载一篇非常不错的关于IO优化的文章,供大家参考和学习:一、关于页面缓存的信息,可以用cat /proc/meminfo看到。其中的Cached 指用于pagecache的内存大小(dis...
分类:
系统相关 时间:
2014-09-12 20:39:04
阅读次数:
377
Customer表A字段 varchar(50) 内容(客户姓名)B字段 varchar(1000) 内容(其他字符...客户姓名...其他字符)需要达到效果:将B字段中的客户姓名替换掉B字段内容替换成(其他字符......其他字符)如何将每个数据行内的B字段内所有符合A字段内容的文字部分替换成空隔...
分类:
其他好文 时间:
2014-09-12 16:53:53
阅读次数:
170