sudo./configure--prefix=../armv7--disable-ffmpeg--disable-ffplay--disable-ffprobe--disable-ffserver--enable-cross-compile--sysroot="/Applications/Xcod...
分类:
其他好文 时间:
2014-07-11 22:12:38
阅读次数:
543
Creating a selection filter that finds dynamic blocks in AutoCAD using .NETAn interesting question came in via email from Rob Outman. He’s interested ...
分类:
其他好文 时间:
2014-07-09 13:51:57
阅读次数:
324
Problem Description
The God of sheep decides to pixelate some pictures (i.e., change them into pictures with mosaic). Here's how he is gonna make it: for each picture, he divides the picture into n x...
分类:
其他好文 时间:
2014-07-09 12:14:13
阅读次数:
433
nginx的安装下载地址:http://nginx.org/download/nginx-1.4.2.tar.gz安装准备:nginx依赖于pcre库,要先安装pcreyuminstallpcrepcre-develcd/usr/local/src/wgethttp://nginx.org/download/nginx-1.4.2.tar.gztarzxvfnginx-1.4.2.tar.gzcdnginx-1.4.2./configure--prefix=/usr/lo..
分类:
其他好文 时间:
2014-07-09 09:04:41
阅读次数:
199
For each prefix of a given string S with N characters (each character has an ASCII code between 97 and 126, inclusive), we want to know whether the prefix is a periodic string. That is, for each i (2...
分类:
其他好文 时间:
2014-07-08 17:54:12
阅读次数:
297
Write a function to find the longest common prefix string amongst an array of strings.
写一个函数找出字符串数组中的最长共现前缀字符串。
思路:共现,即要求数组中的所有元素的前缀中都要出现。所以所得的结果肯定是最短字符串的部分或全部或都不是,总之要以最短字符串为基准与其他字符串比较。
public Str...
分类:
其他好文 时间:
2014-07-08 10:39:49
阅读次数:
203
Description
Little John is herding his father's cattles. As a lazy boy, he cannot tolerate chasing the cattles all the time to avoid unnecessary omission. Luckily, he notice that there were N trees...
分类:
其他好文 时间:
2014-07-06 10:39:09
阅读次数:
188
链表的归并排序
超时的代码
class Solution:
def merge(self, head1, head2):
if head1 == None:
return head2
if head2 == None:
return head1
# head1 and head2 point to the same link list
if head1 == he...
分类:
编程语言 时间:
2014-07-06 09:09:51
阅读次数:
275
环境:Ubuntu 9.10 git-1.8.2.3.tar.bz2
1.将安装包下载到所选目录下,如:/tmp
2.tar -xjf git-1.8.2.3.tar.bz2
3.cd git-1.8.2.3
4.配置:./configure --prefix=/usr/bin
5.安装,如果直接make install安装出现错误,可以用下面命令...
分类:
其他好文 时间:
2014-07-06 08:47:47
阅读次数:
207
单链表的反转可以使用循环,也可以使用递归的方式
1.循环反转单链表
循环的方法中,使用pre指向前一个结点,cur指向当前结点,每次把cur->next指向pre即可。
代码:
class ListNode:
def __init__(self,x):
self.val=x;
self.next=None;
def nonrecurse(he...
分类:
编程语言 时间:
2014-07-06 00:24:52
阅读次数:
331