locate:非实时,非精确查找,是根据全系统文件数据库进行查找的优点是速度快可以使用updatedb立即更新数据库find:实时精确,支持多查找标准,使用遍历文件查找,所以速度很慢find查找路径查找标准找到后的处理动作查找路径:默认为当前目录处理动作:默认为显示匹配标准:-name..
分类:
系统相关 时间:
2015-08-14 19:29:30
阅读次数:
197
今天闲来无事,做了三道leetcode水题,怒更两发博客,也挺不错。今天更新的两篇都是dp解法的简单题。
题目要求如下。
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, giv...
分类:
其他好文 时间:
2015-08-14 19:06:57
阅读次数:
193
亲测成功。随便新建一个swift文件,xcode问是否生成xxx-Bridging-Header.h文件,点YES。再编译,问题解决。
分类:
编程语言 时间:
2015-08-14 18:49:39
阅读次数:
112
***.js: /** * 收起或者展开筛选框 */ function filterType(){ $("#filter_box_id").toggle(500); var shaixuanBtn = $("#filter_title_id").find(".shaixuan-btn");...
分类:
编程语言 时间:
2015-08-14 18:43:55
阅读次数:
129
Problem I – Ladies’ Choice
Background
Teenagers from the local high school have asked you to help them with the organization of next year’s Prom. The idea is to find a suitable date for everyone in...
分类:
编程语言 时间:
2015-08-14 17:07:48
阅读次数:
219
Given a binary search tree, write a functionkthSmallestto find thekth smallest element in it.Note:You may assume k is always valid, 1 ≤ k ≤ BST's tota...
分类:
其他好文 时间:
2015-08-14 16:58:03
阅读次数:
98
find the safest road
Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 9033 Accepted Submission(s): 3173
Problem Description
XX星球...
分类:
其他好文 时间:
2015-08-14 15:45:52
阅读次数:
124
$('.tab').click(function(){ var index = $('.tab').index(this), //缓存第一次点击的li的索引值 ele = $(this).find('.ind'); $('.tab').each(function(i){ if(i != in...
分类:
Web程序 时间:
2015-08-14 15:20:02
阅读次数:
154
function groupChatCount(){ var count = 0; var rows = db.historyGroup.find(); for(var i=0, len = rows.length(); i < len; i++){ count = count + row...
分类:
其他好文 时间:
2015-08-14 15:18:23
阅读次数:
93
今天因为要用到List的查找功能,所以写了一段测试代码,测试线性查找和二分查找的性能差距,以决定选择哪种查找方式。线性查找:Contains,Find,IndexOf都是线性查找。二分查找:BinarySearch,因为二分查找必须是对有序数组才有效,所以查找前要调用List的Sort方法。结论:如...
分类:
其他好文 时间:
2015-08-14 15:03:20
阅读次数:
91