$infos = @{}$infos.Path ='c:\Windows'$infos.Recurse =$true$infos.Filter ='*.log'$infos.ErrorAction ='SilentlyContinue'$infos.Remove('Recurse')dir@info...
分类:
其他好文 时间:
2014-06-14 21:49:24
阅读次数:
234
Question:Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, .....
分类:
其他好文 时间:
2014-06-14 20:59:07
阅读次数:
188
Decription: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, gi...
分类:
其他好文 时间:
2014-06-14 19:46:12
阅读次数:
251
默认安装好ftp软件包匿名用户是可以下载的。匿名以后可以上传:anon_upload_enable=YES# getsebool -a | grep ftpallow_ftpd_anon_write --> onchcon -t public_content_rw_t pubchmod 775 pu...
分类:
系统相关 时间:
2014-06-14 19:21:33
阅读次数:
344
下面是把sourceDir文件夹下的以.JPG结尾的文件全部复制到targetDir文件夹下:
>>>import os
>>> import os.path
>>> import shutil
>>> def copyFiles(sourceDir,targetDir):
for files in os.listdir(sourceDir):
sourceFile = os.path....
分类:
编程语言 时间:
2014-06-14 14:40:17
阅读次数:
283
题目
Follow up for "Search in Rotated Sorted Array":
What if duplicates are allowed?
Would this affect the run-time complexity? How and why?
Write a function to determine if a given target is in the array.
原题链接(点我)
解题思路
这题和Search in Rotated Sorted Array问题类似,...
分类:
其他好文 时间:
2014-06-14 12:44:18
阅读次数:
266
在多个工程当中,可能使用到相同的jar包,这时,如果我们建立一个自己的类库,该类库中存放着所有工程均需要的jar包,就可以免去重复导入的麻烦。来看一下操作的主要步骤与过程。
Eclipse--->preferences(译偏爱,偏好)---->java-->Build path--->userlibiraries-->new 输入自己命名(这里我创建的是myLibrary),点击add jars...
分类:
系统相关 时间:
2014-06-14 11:00:37
阅读次数:
249
#include
#include
using namespace std;
#define read(x) scanf("%lld",&x)
int main()
{
priority_queue,greater >q;
long long n,temp,sum;
read(n);
if(n==1)
{
read(temp);
printf("%lld\n",temp);
...
分类:
其他好文 时间:
2014-06-14 10:34:12
阅读次数:
223
void dfs(int k,int target,vector& candidates,vector& sol,vector >& res){ if(target==0){ vector temp(sol); res.push_back(temp); return; }else if(tar...
分类:
其他好文 时间:
2014-06-14 10:31:07
阅读次数:
196
Mantle makes
it easy to write a simple model layer for your Cocoa or Cocoa Touch application. Mantle
can still be a convenient translation layer between the API and your managed model objects.
...
分类:
其他好文 时间:
2014-06-14 09:27:26
阅读次数:
463