做过几次拍照,相册选取图片,但都记不住,这次发表个简单的保存下private static final int PHOTO_GRAPH = 1;// 拍照 private static final int PHOTO_ALBUM = 2; // 相册获取 private static f...
分类:
移动开发 时间:
2015-10-27 15:19:50
阅读次数:
219
Check whether a given graph is Bipartite or notABipartite Graphis a graph whose vertices can be divided into two independent sets, U and V such that e...
分类:
其他好文 时间:
2015-10-24 11:24:27
阅读次数:
271
Given a Directed Graph and two vertices in it, check whether there is a path from the first given vertex to second.For example, in the following graph...
分类:
其他好文 时间:
2015-10-23 20:09:08
阅读次数:
213
New stuff learnt - Union-Find. Simpler and more elegant than I thought.class Solution { unordered_map father; int find(int val) { if(!...
分类:
其他好文 时间:
2015-10-21 14:08:51
阅读次数:
191
Treap的基础题目,Treap是个挺不错的数据结构。 1 /* */ 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #incl...
分类:
其他好文 时间:
2015-10-20 12:17:48
阅读次数:
258
称号:http://community.topcoder.com/stat?c=problem_statement&pm=13251&rd=16017參考:http://apps.topcoder.com/wiki/display/tc/TCO+2014+Round+2C假设用先计算出每条边,用邻接...
分类:
其他好文 时间:
2015-10-18 23:05:37
阅读次数:
246
A vertex in an undirected connected graph is an articulation point (or cut vertex) iff removing it (and edges through it) disconnects the graph.Articu...
分类:
其他好文 时间:
2015-10-18 19:48:19
阅读次数:
262
Learn how to create an Immutable.Map() through plain Javascript object construction and also via array tuples.console.clear();// Can be an objectvar m...
分类:
编程语言 时间:
2015-10-18 18:13:53
阅读次数:
202
OGNLOGNL ( Object Graph Navigation Language ),对象图导航语言。这是一种强大的表达式语言,通过它可以非常方便的来操作对象属性。在 Struts2 中,OGNL 需要和 Struts2 标签库配套来使用。OGNL context ...
分类:
其他好文 时间:
2015-10-16 11:55:58
阅读次数:
158
You are given a tree (an acyclic undirected connected graph) withNnodes, and edges numbered 1, 2, 3...N-1.We will ask you to perfrom some instructions...
分类:
其他好文 时间:
2015-10-15 20:19:36
阅读次数:
220