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
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
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
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
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
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
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
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