ProcessesTrying to get a global view of processes is helpful when trying to assess how much work is being done in the VM in terms of tasks. A general good practice in Erlang is to use processes for tr...
分类:
系统相关 时间:
2014-11-15 11:28:38
阅读次数:
167
A message containing letters from A-Z is being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded message con...
分类:
其他好文 时间:
2014-11-15 08:54:40
阅读次数:
148
原文地址:http://leihuang.net/2014/11/09/Builder-Pattern/
The builder pattern is a good choice when designing classes whose constructors or static factories would have more than a handful of parameter...
分类:
其他好文 时间:
2014-11-14 17:53:06
阅读次数:
251
用惯了access mssql server的朋友,可能在用mysql查询前N条记录时,习惯的使用select top n 形式的语句,在这里说明一下,mysql没有此语法,mysql用limit来实现相关功能,而且功能更加强大,GOOD。以下是limit在mysql中的使用详解:语法:SELECT...
分类:
数据库 时间:
2014-11-14 10:27:52
阅读次数:
163
问:
I'm a bit lost on AFNetorking's Reachability and haven't found a lot of good information out there.
I have an app that logs into a web API. Each VC connects to the API in some way so each VC need...
分类:
其他好文 时间:
2014-11-14 00:19:13
阅读次数:
393
js函数集·字符串(String)1.声明var myString = new String("Every good boy does fine.");var myString = "Every good boy does fine.";2.字符串连接var myString = "Every " ...
分类:
Web程序 时间:
2014-11-13 22:22:36
阅读次数:
314
#include #include #include #include Dim $XS_n$Debug_SB = False ; Check ClassName being passed to functions, set to True and use a handle to another co...
分类:
其他好文 时间:
2014-11-13 15:55:30
阅读次数:
368
题意:问a串中有多少种字符串集合B中没有的连续子串。a的长度10^5,B中的总长度为不超过10^5.
解法:后缀数组题目;后缀数组可以很容易算出来一个串中有多少种子串。把a和B集合连起来,求一次不同子串数量,然后减掉B相互连起来的数量。在求时候,要减掉含有链接符的子串,方法是扫一遍,枚举最后出现的连接符。
代码:/********************************...
分类:
编程语言 时间:
2014-11-12 19:47:10
阅读次数:
312
A message containing letters from A-Z is being encoded to numbers using the following mapping:
'A' -> 1
'B' -> 2
...
'Z' -> 26
Given an encoded message containing digits, determine the total numb...
分类:
其他好文 时间:
2014-11-12 13:51:56
阅读次数:
297
Some PLF-based controls expose a convenient facility for temporarily disabling their events and for checking if an event is being raised. The followin...
分类:
其他好文 时间:
2014-11-11 22:34:40
阅读次数:
267