Given an arraySofnintegers, are there
elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in
the array which gives the sum of ...
分类:
其他好文 时间:
2014-04-29 22:40:00
阅读次数:
438
Ubuntu默认是安装好了tcpdump工具的,如果没有安装的话使用sudo apt-get
install tcpdump即可安装。 (如果遇到tcpdump: no suitable device
found的问题,检查一下是不是在用root权限运行tcpdump,tcpdump只能在root权...
分类:
其他好文 时间:
2014-04-29 20:18:22
阅读次数:
620
After having installed Ubuntu OS, you should
update config file for root account. The commands are listed as follow:vi
/etc/lightdm/lightdm.conf #open...
分类:
其他好文 时间:
2014-04-29 19:21:56
阅读次数:
555
VIM中字符编码的设置 2008-07-24 12:54:18分类:
VIM中,我们可以通过修改/etc/vimrc文件来设置VIM的encoding,我们可以通过:help
encoding来察看vim中关于encoding的一些帮助,:help encoding-values可以看到vim支持的...
分类:
其他好文 时间:
2014-04-29 18:00:46
阅读次数:
533
vim toolis a commom editor, for the sake of
improving effeicient, it is necessary to configurate vim config file. The
following comands will help you....
分类:
其他好文 时间:
2014-04-29 17:58:49
阅读次数:
502
2014-04-28 23:35题目:最大子数组和问题。解法:O(n)解法。代码: 1 //
17.8 Find the consecutive subarray with maximum sum in an array. 2 // O(n)
online algorithm. 3 #include...
分类:
其他好文 时间:
2014-04-29 16:35:28
阅读次数:
429
cd ~/.ssh/如果目录不存在就新建一个 mkdir ~/.ssh制作公匙
ssh-keygen -t rsa默认会生成id_rsa.pub的公匙将公匙推送到指定的服务器 scp id_rsa.pub
username@server:~/.ssh/id_rsa.pub登录到服务器 ssh use...
分类:
系统相关 时间:
2014-04-29 16:01:32
阅读次数:
625
2014-04-28
23:52题目:设计算法,找出一本书中某个单词的出现频率。解法:数就行了。代码: 1 // 17.9 Given a book, find out the
occurrences of any given words in it. 2 // Answer: 3 // 1....
分类:
其他好文 时间:
2014-04-29 16:00:32
阅读次数:
388
先确保本地Linux服务器SSH服务开启,如果没有开启直接执行指令:service sshd
start然后我们使用ssh指令进行远程登陆ssh username@ip-address输入passwd指令修改旧密码修改默认账号rootvi
/etc/passwd按i键进入编辑状态修改第1行第1个ro...
分类:
系统相关 时间:
2014-04-29 15:51:22
阅读次数:
586
需求1:打包成Linux上可执行程序a.
先下载pyinstaller程序,我当前下载的是PyInstaller-2.1的版本进行如下操作:pythoner@pythoner-virtual-machine:~/PyInstaller-2.1$
sudo python2.7 setup.py ins...
分类:
其他好文 时间:
2014-04-29 15:48:16
阅读次数:
501