原题地址:https://oj.leetcode.com/problems/reverse-words-in-a-string/题意:Given
an input string, reverse the string word by word.For example,Given s = "the s...
分类:
编程语言 时间:
2014-06-03 11:13:36
阅读次数:
258
測试环境:Oracle Enterprise Linux 64-bit (5.8版本号) +
Oracle 11g 64位相关说明: Oracle11g64位软件的安装位置为/u01/app/oracle/product/11.2.0/dbhome_1
,数据库名为默认的orcl,Linux虚拟机的...
分类:
数据库 时间:
2014-06-03 09:57:08
阅读次数:
500
普及 linux 基础知识,Linux 文件及文件夹权限,不要动不动就 777
权限。网上教程过于复杂啰嗦,简单总结如下...一、查看 Linux 文件权限ls -l (通用)ll (Ubuntu适用,等于ls
-al)二、权限标示符r(读)、w(写)、x(执行)4(读)、2(写)、1(执行)注:目...
分类:
系统相关 时间:
2014-06-03 09:17:01
阅读次数:
241
原题地址:https://oj.leetcode.com/problems/word-break/题意:Given
a stringsand a dictionary of wordsdict, determine ifscan be segmented into a
space-separated...
分类:
编程语言 时间:
2014-06-03 09:14:24
阅读次数:
293
使用echo或者printf时,可以添加输出文本的颜色设置echo -e "Maximum
\e[1;31m" $max_threads "\e[0mthreads allowed!" >>
$term_dir/summary或者printf("\033[;34mfile\033[0m")31开始代...
分类:
系统相关 时间:
2014-06-03 09:11:52
阅读次数:
306
List Comprehension1.列表推导 [i for i in range(10) if
i%2 == 0] -> [0, 2, 4, 6, 8], i也可以是一个函数,该风格比C语言思想的代码风格效率高2.enumerate
取到了序列中的序列号好内容forindex,iteminenu...
分类:
编程语言 时间:
2014-06-03 09:08:01
阅读次数:
254
安装Linux
CentOS时,需要在硬盘建立CentOS使用的分区,在大多情况下,至少需要为CentOS建立以下3个分区。(1)/boot分区(不是必须的):/boot分区用于引导系统,它包含了操作系统的内核和在启动系统过程中所要用到的文件,该分区的大小一般为100MB。(2)swap分区:swa...
分类:
其他好文 时间:
2014-06-03 09:06:36
阅读次数:
259
参考:http://www.linuxidc.com/Linux/2011-12/50056.htmbaoyu@baoyu:~$ gedit
/var/lib/locales/supported.d/local添加:zh_CN.GBK GBKzh_CN.GB2312 GB2312
baoyu@bao...
分类:
系统相关 时间:
2014-06-03 08:57:59
阅读次数:
248
原题地址:https://oj.leetcode.com/problems/max-points-on-a-line/题意:Givennpoints
on a 2D plane, find the maximum number of points that lie on the same strai...
分类:
编程语言 时间:
2014-06-03 08:55:48
阅读次数:
282
转自:Linux 命令集锦linux下查看监听端口对应的进程#lsof
-i:9000#lsof -Pnl +M -i4如果退格键变成了:"^h"。终端连接unix删除退格键,按住CTL键同时按deleteLinux搜索#find
/ -name "xxx.conf"查看linux是32位还是64位...
分类:
系统相关 时间:
2014-05-30 23:25:09
阅读次数:
563