Given an unsorted array of integers, find the
length of the longest consecutive elements sequence.For example,Given[100, 4,
200, 1, 3, 2],The longest ...
分类:
其他好文 时间:
2014-07-22 23:16:14
阅读次数:
408
Linux SkillsLinux SkillsTable of Contents1. How
to use ramdisk in Ubuntu and Fedora?2. How to enable ssh server in Ubuntu?3. How
to disable CPU in Lin...
分类:
系统相关 时间:
2014-07-22 23:14:14
阅读次数:
673
配置配置文件位于:/etc/vim/vimrc(添加配置在文件末尾输入代码即可)常用配置配色方案
:colorscheme
ron(其中ron为我的配色方案,也可以选择其他,软件中自带配色文件全部存在/usr/share/vim73(也可能是vim74,版本不同)/colors中,可以根据自己的喜好...
分类:
其他好文 时间:
2014-07-22 23:13:55
阅读次数:
319
今天在学习鸟哥的菜的时候,发现自己linux不可以启用vim命令,错误为:bash: vim:
command not found。 机器环境:VMWare8+RED HAT Enterprise5 解决方法: 发现问题的根源在于没有安装好vim 输入
rpm -qa|grep vim ...
分类:
其他好文 时间:
2014-07-22 23:12:56
阅读次数:
993
Ubuntu安装过程很顺利,安装完成后还是有小问题存在问题1:无法联网,PING可以通,网址无法解析原因:默认DNS设置不正确解决:设置DNS地址为8.8.8.8,问题解决问题2:vmware-tools安装失败,无法建立Share
Folder原因:vmhgfs 模块编译失败,一堆源码中的类型不兼...
分类:
其他好文 时间:
2014-07-22 23:12:55
阅读次数:
417
第6章
ShellShell就是一个命令解释器,负责完成用户与内核之间的交互。目前流行电Shell主要有:Bourne Shell( sh )、Bourne Again
Shell( Bash )、C Shell( csh )和Korn Shell( ksh ),Ubuntu Linux默认支持电s...
分类:
其他好文 时间:
2014-07-22 23:12:54
阅读次数:
481
Given a string, find the length of the longest
substring without repeating characters. For example, the longest substring
without repeating letters fo...
分类:
其他好文 时间:
2014-07-22 23:11:32
阅读次数:
388
1、单链表循环体用while(p->next!=NULL)而不用while(p!=NULL)的原因 node *Find_MidNode(node
*head){ if(head->next==NULL||head->next->next==NULL) return
head->next; node...
分类:
其他好文 时间:
2014-07-22 23:11:15
阅读次数:
374
前言:我们为什么要学会使用find命令?转自:http://blog.chinaunix.net/uid-24648486-id-2998767.html每一种操作系统都有成千上万的文件组成,对于linux这样“一切皆文件”的操作系统来说更不例外,大家应该都能很轻松使用windows下的文件查找功能...
分类:
系统相关 时间:
2014-07-22 23:10:56
阅读次数:
608
原地址:http://www.cnblogs.com/svage/p/3700122.html1、删除目录及子目录下的 .svn目录 find . -type
d -name ".svn" | xargs rm -rf2、/tmp 目录的权限drwxrwxrwt rwt的意思是:对目录有执行权...
分类:
系统相关 时间:
2014-07-22 23:09:34
阅读次数:
552