码迷,mamicode.com
首页 >  
搜索关键字:by-path    ( 29634个结果
On-demand diverse path computation for limited visibility computer networks
In one embodiment, a source device detects a packet flow that meets criteria for multi-path forwarding, and forwards a probe packet on a primary path ...
分类:Web程序   时间:2014-07-22 22:47:53    阅读次数:374
[leetcode]Triangle
TriangleGiven 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...
分类:其他好文   时间:2014-07-22 22:47:52    阅读次数:230
【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-07-22 22:40:36    阅读次数:238
hadoop的WordCount样例
package cn.lmj.mapreduce;import java.io.IOException;import java.util.Iterator;import org.apache.hadoop.fs.Path;import org.apache.hadoop.io.LongWritabl...
分类:其他好文   时间:2014-07-22 22:40:15    阅读次数:170
【 D3.js 入门系列 --- 9.1 】 饼状图的制作
本章介绍如何用 D3 做一个饼状图。初始数据是几个整数,将这几个整数转换成饼状图使用的数据,转换用 Layout 来转换数据。...
分类:Web程序   时间:2014-07-22 14:17:14    阅读次数:568
Class.getResourceAsStream() VS. ClassLoader.getResourceAsStream()
For Class.getResourceAsStream(String name), if the name parameter doesn't start with a "/", then it's a relative path to the class's package. If the n...
分类:其他好文   时间:2014-07-22 00:08:34    阅读次数:277
poj3041 Asteroids --- 最小点覆盖
#include #include #include #include #include #include #include const int maxn=510; using namespace std; int my[maxn],mx[maxn],vis[maxn],e[maxn][maxn],n; int path(int i) { int j; for(j=1;j<=n...
分类:其他好文   时间:2014-07-21 23:29:42    阅读次数:199
Android用getIdentifier()获取资源Id
主要由两种方法: 1、不把图片放在res/drawable下,而是存放在src某个package中(如:com.drawable.resource),这种情况下的调用方法为:String path = "com/drawable/resource/imageName.png"; InputStream is = getClassLoader().getResourceAsStream(pat...
分类:移动开发   时间:2014-07-21 22:36:08    阅读次数:252
python文件查找
1、importglobshell干的就是glob 在windows下使用搜索*.py需要导入glob才可以进行*.py的搜索 glob.glob(‘*.py‘)返回以py结尾的列表 2、处理参数最方便的工具: fromoptparseimportOptionParser 3、os.path os.path.dirname(sys.argv[0]) or os.path.dirname(__file__) os.path..
分类:编程语言   时间:2014-07-21 19:34:02    阅读次数:284
动态规划第六讲——leetcode上的动态规划汇总(下)
接下来的几道题,都是有关路径问题,这可以说是DP问题的一种典型应用。路径有一个维度的;也有两个维度的。 Eg10:Climbing Stairs 这道题目比较简单,重在分析思路。 Eg11:Minimum Path Sum  分析:略 class Solution { public: int minPathSum(v...
分类:其他好文   时间:2014-07-21 16:48:55    阅读次数:191
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!