.cut { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; -o-text-overflow:ellipsis; -icab-text-overflow: ellipsis; ...
分类:
Web程序 时间:
2015-02-02 19:24:28
阅读次数:
200
Clone an undirected graph. Each node in the graph contains alabeland a list of itsneighbors.OJ's undirected graph serialization:Nodes are labeled uniq...
分类:
其他好文 时间:
2015-02-02 15:25:58
阅读次数:
193
原题地址方法I,DFS一边遍历一边复制借助辅助map保存已经复制好了的节点对于原图中每个节点,如果已经复制过了,直接返回新节点的地址,如果没复制过,则复制并加入map中,接着依次递归复制其兄弟。代码: 1 map old2new; 2 3 UndirectedGraphNode *cloneGra....
分类:
其他好文 时间:
2015-02-02 00:36:32
阅读次数:
153
出于兴趣一直以来都断断续续看过dshow的东西,可没怎么系统地总结过(学习还是要多实践,多总结啊).
dshow预览摄像头捕捉的视频比较简单基础,网上相关的资料很多,简单的思路由下面代码所示:
ICaptureGraphBuilder2 *pBuild; // Capture Graph Builder
// Initialize pBuild (not shown).
IBaseFilter...
分类:
其他好文 时间:
2015-02-01 23:19:48
阅读次数:
289
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3549Network flow is a well-known difficult problem for ACMers. Given a graph, your task is to find out ...
分类:
其他好文 时间:
2015-02-01 18:57:24
阅读次数:
236
uva 193 Graph Coloring
You are to write a program that tries to find an optimal coloring for a given graph. Colors are applied to the nodes of the graph and the only available colors are bl...
分类:
其他好文 时间:
2015-02-01 13:33:32
阅读次数:
169
Linux命令——cut命令学习一、定义 正如其名,cut的工作就是“剪”,具体的说就是在文件中负责剪切数据用的。cut是以每一行为一个处理对象的,这种机制和sed是一样的。2、剪切依据cut命令主要是接受三个定位方法:第一,字节(bytes),用选项-b第二,字符(characters),用选项-...
分类:
系统相关 时间:
2015-01-31 11:56:13
阅读次数:
230
拓扑排序的算法package ToPu;public class Graph { private final int MAX_VERTS = 20; private Vertex vertexList[]; private int adjMat[][]; private int nVerts; pr...
分类:
编程语言 时间:
2015-01-31 00:21:25
阅读次数:
255
先贴一个样例,然后解释一下: 1 LOCAL_PATH:= $(call my-dir) 2 include $(CLEAR_VARS) 3 LOCAL_MODULE := mydjvuapi 4 SRC_FILE_OF_MINE :=\ 5 classify.cpp \ 6 cut...
分类:
移动开发 时间:
2015-01-30 15:42:49
阅读次数:
262