码迷,mamicode.com
首页 >  
搜索关键字:find    ( 24186个结果
Majority Number I & || && |||
Majority Number Given an array of integers, the majority number is the number that occurs more than half of the size of the array. Find it. Example Gi ...
分类:其他好文   时间:2016-06-29 23:45:44    阅读次数:201
Linux下which、whereis、locate、find命令的区别
我们经常在linux要查找某个文件,但不知道放在哪里了,可以使用下面的一些命令来搜索。这些是从网上找到的资料(参考资料1),因为有时很长时间不会用到,当要用的时候经常弄混了,所以放到这里方便使用。 which 查看可执行文件的位置 whereis 查看文件的位置 locate 配合数据库查看文件位置 ...
分类:系统相关   时间:2016-06-29 22:10:43    阅读次数:239
whereis 命令
whereis命令只能用于程序名的搜索,而且只搜索二进制文件(参数-b)、man说明文件(参数-m)和源代码文件(参数-s)。如果省略参数,则返回所有信息。 和 find相比,whereis查找的速度非常快,这是因为linux系统会将 系统内的所有文件都记录在一个数据库文件中,当使用whereis和 ...
分类:其他好文   时间:2016-06-29 21:55:11    阅读次数:113
acm学习总结
Acm总结 学到的算法和数据结构: STL的使用 STL是C++的标准模板库,提供了相当多的现成的库函数和数据结构,STL即可以极大地缩短代码长度,出错的概率。STL中的库函数包括sort排序函数,有find,lower_bound和upper_bound等一些查找函数用来简化代码,另外最常用的就是 ...
分类:其他好文   时间:2016-06-29 20:33:06    阅读次数:173
linux命令之——文件搜索命令
linux命令之——文件搜索命令 文件搜索命令:find 命令所在路径: /bin/find 执行权限 : find 【搜索范围】【匹配条件】 功能描述: 文件搜索 $find /etc -name init??? (相当于模糊搜素 *init* *匹配任意字符 ?匹配单个字符) 在目录/etc中查 ...
分类:系统相关   时间:2016-06-29 18:55:11    阅读次数:237
查找数组中连续的数
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 ...
分类:编程语言   时间:2016-06-29 13:03:48    阅读次数:204
5. Longest Palindromic Substring java solutions
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longes ...
分类:编程语言   时间:2016-06-29 13:00:29    阅读次数:138
mongodb常用基本命令(根据工作需要,不断更新)
推荐可视化工具:mongobooster复制库 db.copyDatabase("ability_message","ability_message_copy")查看数据 db.operation_log.find({"oldData._id":'2c91814e5570a5cf01557118d1... ...
分类:数据库   时间:2016-06-29 12:58:40    阅读次数:186
【一天一道LeetCode】#104. Maximum Depth of Binary Tree
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处 (一)题目来源:https://leetcode.com/problems/maximum-depth-of-binary-tree/ Given a binary tree, find its maximu...
分类:其他好文   时间:2016-06-29 11:32:26    阅读次数:185
leetcode—Best Time to Buy and Sell Stock IV
题目: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may co ...
分类:其他好文   时间:2016-06-29 11:06:49    阅读次数:142
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!