码迷,mamicode.com
首页 >  
搜索关键字:find    ( 24186个结果
Interleaving String (DP)
Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For example, Given:s1 = "aabcc",s2 = "dbbca", When s3 = "aadbbcbcac", re ...
分类:其他好文   时间:2016-04-18 20:19:25    阅读次数:143
find命令和tar命令的使用
tar命令 tar -zcvf small.tar.gz small(目录名) (压缩) tar -zxvf small.tar.gz small(目录名) (解压) find 命令 find ./ -mtime 5 -print (搜索5天内文件数据) 所搜10M以上文件数据 find 中 -ex ...
分类:其他好文   时间:2016-04-18 18:48:41    阅读次数:179
linux常用命令-搜索
1.find $ find . -name 'nginx*' $ find . -name 'nginx*' -ls $ find . -type f -mmin -10 搜索当前目录中,所有过去10分钟中更新过的普通文件。如果不加-type f参数,则搜索普通文件+特殊文件+目录。 2. loca ...
分类:系统相关   时间:2016-04-18 13:24:54    阅读次数:176
4. Median of Two Sorted Arrays
There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity sh ...
分类:其他好文   时间:2016-04-18 13:15:00    阅读次数:207
统计不同邮箱类型数量
效果图: 控制器: //查询邮箱 public function actionEmail() { /* //查询所有邮箱数据(1种) $arr=Users::find("select * from users")->asArray()->all(); //var_dump($data);die; $ ...
分类:其他好文   时间:2016-04-18 11:48:55    阅读次数:193
[LeetCode]-011-Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings. []=>""["abcweed","htgdabc","sabcrf"]=>""["abcweed","abhtgdc","a ...
分类:其他好文   时间:2016-04-18 11:38:56    阅读次数:129
统计用户注册表邮箱类型数量
模型层获取数据 /** * 获取数据 */ public function getInfos(){ return $this->find()->asArray()->all(); } public function actionCounts(){ $model = new User; //获取所有数 ...
分类:其他好文   时间:2016-04-18 11:35:09    阅读次数:128
Triangle(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, given the fo ...
分类:其他好文   时间:2016-04-18 10:10:29    阅读次数:151
Linux安装系统解决插入U盘才能启动
1、通过U盘先正常进入CentOS系统,然后将U盘拔出。2、输入grub进入grub命令行模式。 #[root@localhost /]# grub3、输入find /boot/grub/stage1 或者 find /grub/stage1(我的是这个) #grub> find /boot/gru ...
分类:系统相关   时间:2016-04-18 10:08:59    阅读次数:173
Longest Common Subsequence (DP)
Given two strings, find the longest common subsequence (LCS). Your code should return the length of LCS. Example For "ABCD" and "EDCA", the LCS is "A" ...
分类:其他好文   时间:2016-04-18 08:43:52    阅读次数:117
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!