Longest Increasing SubsequenceGiven an unsorted array of integers, find the length of longest increasing subsequence.For example,Given[10, 9, 2, 5, 3,...
分类:
编程语言 时间:
2015-11-15 20:29:16
阅读次数:
482
1 #!/bin/sh 2 #find the count of same name files under current directory 3 4 rm -rf search.txt 5 for file in `find . -name "*.txt"` 6 do 7 ...
分类:
其他好文 时间:
2015-11-14 23:26:57
阅读次数:
359
最基本的async 包ApCollection.find({}).toArray(function (err, aps) { var num = 0; async.whilst( function () { return...
分类:
其他好文 时间:
2015-11-14 20:38:28
阅读次数:
536
Given a 2D matrixmatrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1,col1) and lower right corner (row2,c...
分类:
其他好文 时间:
2015-11-14 06:29:27
阅读次数:
467
Given an integer arraynums, find the sum of the elements between indicesiandj(i≤j), inclusive.Example:Given nums = [-2, 0, 3, -5, 2, -1]sumRange(0, 2)...
分类:
其他好文 时间:
2015-11-14 06:19:15
阅读次数:
398
> 准备好所需软件以及上篇教程中使用Fbinstool制作的可启动U盘2>解压CDLinux-0.9-spring-0412.iso到U盘的根目录 如图3> 打开fbinstool编辑menu.lst 如下timeout 10default 0gfxmenu (ud)/message || find...
分类:
系统相关 时间:
2015-11-14 00:49:56
阅读次数:
498
字符串方法findjoinlowerreplacesplitstriptranslatefind:可以在一个较长的字符串中查找字符串,返回值是这个字符串所在的位置的最左端索引,找不到返回-1例:>>>‘Withamoo-moohere,andamoo-moothere’.find(‘moo‘)7>>>‘Withamoo-moohere,andamoo-moother..
分类:
编程语言 时间:
2015-11-13 23:45:39
阅读次数:
416
Eclipse文本编辑器拥有编辑器的标准功能,包括数目不限的Undo(Ctrl+Z)和Redo(Ctrl+Y)操作。使用快捷键Ctrl+F后,会出现Find/Replace对话框,快捷键Ctrl+K或Ctrl+Shift+K分别用来找出所搜索字符串的下一个和前一个出现。Eclipse文本编辑器还提供...
分类:
系统相关 时间:
2015-11-13 20:47:32
阅读次数:
435
系统长时间的备份会产生大量的过时文件#!/bin/bashlogback_path=/home/rzrk/server/logbackup/logback_30day_ago=`find-mtime+30`cd$logback_pathecho-e‘正在搜索30天以前的文件‘sleep1find-mtime+30whileread-p‘PleaseEntertoDeletefiles[Y/N]:‘choose do if["$choose"==y]; ..
分类:
其他好文 时间:
2015-11-13 19:19:40
阅读次数:
263
在编译的时候偶尔遇到错误/usr/bin/ld:cannotfind-lc,如下:查看是没有安装静态库glibc-static而导致的,安装在编译即可:安装方法:yuminstallglibc-static-y然后在编译就不报错了:
分类:
其他好文 时间:
2015-11-13 19:08:52
阅读次数:
196