码迷,mamicode.com
首页 >  
搜索关键字:path sum    ( 49923个结果
asp.net连接LDAP数据,并从LDAP中取出相关数据(1)
ASP.NET连接LDAP数据库的有关信息一、封装在DAL层中的获取用户信息的函数//////按照用户Id查找用户信息/////////publicDirectoryEntry GetUser(string username){string path = System.Configuration.....
分类:Web程序   时间:2014-05-09 16:53:59    阅读次数:418
一个python小脚本——合并一个文件夹下的所有文本
#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
Leetcode: Path Sum
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
LeetCode: Triangle 题解
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安装和环境变量配置-成功经验
JDK安装和环境变量配置1.下载安装软件2.安装JDK--开发环境,路径3.之后打开安装路径下的bin文件夹路径,我的是默认安装C:\Program Files\Java\jdk1.6.0_10\bin4.右键单击我的电脑,属性,高级系统设置,高级,环境变量,系统变量,选择path编辑,复制path...
分类:其他好文   时间:2014-05-07 20:08:12    阅读次数:303
shell脚本练习题(更新中...)
练习题(这里贴的是自己写的代码, 网上给的题目代码我会附加在最下面)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
Sharepoint中的PowerShell操作之站点备份与还原
备份站点Backup-SPSite -Identity -Path [-Force] [-NoSiteLock] [-UseSqlSnapshot] [-Verbose] 那么就按照上面的代码敲吧(注意要有管理员的身份)命令是: backup-spsite -identity http://po.....
分类:其他好文   时间:2014-05-07 10:24:21    阅读次数:473
[leetcode] Path sum路径之和
要求给定树,与路径和,判断是否存在从跟到叶子之和为给定值的路径。比如下图中,给定路径之和为22,存在路径,因此返回true;否则返回false. 5 / \ 4 8 / / \ 11...
分类:其他好文   时间:2014-05-07 10:15:46    阅读次数:270
Leetcode | Binary Tree Maximum Path Sum
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!