#coding:utf8import sys,osdef process(path): for f
in os.listdir(path): fin = open(path+"/"+f,"r") print...
分类:
编程语言 时间:
2014-05-09 12:41:07
阅读次数:
362
1 /** 2 * Definition for binary tree 3 * public
class TreeNode { 4 * int val; 5 * TreeNode left; 6 * TreeNode right; 7 *
TreeNo...
分类:
其他好文 时间:
2014-05-09 12:16:45
阅读次数:
232
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 fol...
分类:
其他好文 时间:
2014-05-08 21:08:25
阅读次数:
407
1. Rem "parameters: 1 ebank/emas 2 simulation/real
3 path of the wp file "Rem表示将在控制台打印的注释,::后为不会打印的注释。2. if "%1"=="ebank" (set
app=ebank&&set port=400...
分类:
其他好文 时间:
2014-05-08 20:29:02
阅读次数:
248
JDK安装和环境变量配置1.下载安装软件2.安装JDK--开发环境,路径3.之后打开安装路径下的bin文件夹路径,我的是默认安装C:\Program
Files\Java\jdk1.6.0_10\bin4.右键单击我的电脑,属性,高级系统设置,高级,环境变量,系统变量,选择path编辑,复制path...
分类:
其他好文 时间:
2014-05-07 20:08:12
阅读次数:
303
练习题(这里贴的是自己写的代码,
网上给的题目代码我会附加在最下面)1.编写shell脚本,计算1-100的和; 1 #!/bin/bash 2 #caculate the sum of
numbers from 1 to 100 3 4 sum=0 5 for i in `seq 1 100`;....
分类:
其他好文 时间:
2014-05-07 19:34:54
阅读次数:
305
备份站点Backup-SPSite -Identity -Path [-Force]
[-NoSiteLock] [-UseSqlSnapshot] [-Verbose] 那么就按照上面的代码敲吧(注意要有管理员的身份)命令是:
backup-spsite -identity http://po.....
分类:
其他好文 时间:
2014-05-07 10:24:21
阅读次数:
473
要求给定树,与路径和,判断是否存在从跟到叶子之和为给定值的路径。比如下图中,给定路径之和为22,存在路径,因此返回true;否则返回false. 5 / \ 4
8 / / \ 11...
分类:
其他好文 时间:
2014-05-07 10:15:46
阅读次数:
270
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, 1 ...
分类:
其他好文 时间:
2014-05-07 09:36:09
阅读次数:
300
1题目:给定K个整数的序列{ N1, N2, ..., NK },其任意连续子序列可表示为{
Ni, Ni+1, ..., Nj },其中 1 int main(){ int n, a[10001], left, beforeleft, right,
i, max, sum; while...
分类:
其他好文 时间:
2014-05-06 13:18:27
阅读次数:
366