Not so MobileBefore being an ubiquous communications gadget, a mobile was just a structure made of strings and wires suspending colourfull things. Th....
分类:
其他好文 时间:
2014-08-15 12:39:28
阅读次数:
249
1 def info(object, spacing=10, collapse=1): 2 """Print methods and doc strings. 3 4 Takes module, class, list, dictionary, or string."""...
Given an array of strings, return all groups of strings that are anagrams....
分类:
其他好文 时间:
2014-08-14 20:39:29
阅读次数:
219
C -Surprising Strings题意:输入一段字符串,假设在同一距离下有两个字符串同样输出Not surprising,否则输出surprising。DescriptionTheD-pairsof a string of letters are the ord...
分类:
其他好文 时间:
2014-08-14 20:18:19
阅读次数:
211
Description
Problem B - BFS (Binary Fibonacci String)
We are familiar with the Fibonacci sequence (1, 1, 2, 3, 5, 8, ...). What if we define a similar sequence for strings? Sounds interesting? Let...
分类:
其他好文 时间:
2014-08-14 10:45:58
阅读次数:
252
# include
# include
# include
using namespace std;
int len;
char a[1000010];
int next[1000010];
void Getnext()
{
int i=0,j=-1;
next[0]=-1;
while(i<=len)
{
if(j==-1||a[j]==a[...
分类:
其他好文 时间:
2014-08-13 22:34:17
阅读次数:
262
在Fedora 13 系统上编译busybox(非交叉编译)产生错误
root@localhost # make
...
gcc -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wularations -Wdeclaration-after-statement -Wold-style-defini...
分类:
其他好文 时间:
2014-08-13 13:11:46
阅读次数:
315
spinner下拉列表框的列表项有两种配置方式:1.通过资源文件配置,通过在values种的xml,比如strings.xml中使用元素添加制定列表项内容,然后通过android:entries=”@array/xxid”的方式进行链接。2.通过android.widget.ArrayAdapter...
分类:
移动开发 时间:
2014-08-13 12:20:26
阅读次数:
266
poj 2406 Power Strings(KMP求循环次数)...
分类:
其他好文 时间:
2014-08-13 10:31:48
阅读次数:
203
python中的装饰器能够装饰函数,也能够装饰类,功能是向函数或者类加入?一些功能。类似于设计模式中的装饰模式,它能够把装饰器的功能实现部分和装饰部分分开,避免类中或者函数中冗余的代码。装饰器装饰函数:def decrator(f1): def newf(): print "strings w...
分类:
编程语言 时间:
2014-08-12 18:26:44
阅读次数:
257