Given amxngrid filled with non-negative
numbers, find a path from top left to bottom right whichminimizesthe sum of all
numbers along its path.Note:Yo...
分类:
其他好文 时间:
2014-06-04 20:57:08
阅读次数:
360
You are climbing a stair case. It takesnsteps
to reach to the top.Each time you can either climb 1 or 2 steps. In how many
distinct ways can you climb...
分类:
其他好文 时间:
2014-06-04 19:53:34
阅读次数:
173
四种基本算法概述:基本排序:选择,插入,冒泡,希尔。上述算法适用于小规模文件和特殊文件的排序,并不适合大规模随机排序的文件。前三种算法的执行时间与N2成正比,希尔算法的执行时间与N3/2(或更快)成正比;前三种算法在平均,最坏情况下都是N2,而且都不需要额外的内存;所以尽管他们的运行时间只相差常数倍...
分类:
其他好文 时间:
2014-06-03 10:01:38
阅读次数:
384
ls -lr反向排序结果==============================ls
${PATH//:/\ } | grep ==============================echo
$RANDOM==============================[[ $# -ne 3 ...
分类:
其他好文 时间:
2014-05-30 21:35:51
阅读次数:
335
由于Android是基于Linux内核的操作系统。因此,在Android上可以执行Shell命令。 chenbjin@acer:~$adbshell
shell@android:/ $ su 拿到root权限 ls 查看文件夹 cd 改变目录 cat 查看文件 rm 删除文件 mkd...
分类:
数据库 时间:
2014-05-30 16:58:36
阅读次数:
380
Given a triangle, find the minimum path sum
from top to bottom. Each step you may move to adjacent numbers on the row
below.For example, given the fol...
分类:
其他好文 时间:
2014-05-30 14:59:37
阅读次数:
241
ifconfig |grep "inet addr"|cut -f 2 -d":"|cut
-f 1 -d " "|head -n 1ifconfigeth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet addr:192.168.1.100 ....
分类:
系统相关 时间:
2014-05-29 20:55:58
阅读次数:
435
写法一:----------------------------------------------------------------------------#!/bin/bashwhile
read linedo echo $linedone < filename(待读取的文件)--------...
分类:
其他好文 时间:
2014-05-29 18:01:41
阅读次数:
230
Linux下很多命令用起来真相当方便,尤其是进行批处理操作时。(话说感觉这种程序也不复杂,windows咋一直不搞一个好用的shell呢)这里列出一些常用shell操作的应用,具体命令的用法与解释就不列了,网上有很多很好的教程。###
批量重命名 假如当前目录下有若干.wma文件,我希望把它们批量转...
分类:
系统相关 时间:
2014-05-29 16:24:52
阅读次数:
327