#python list''' 创建list有很多方法: 1.使用一对方括号创建一个空的list:[] 2.使用一对方括号,用','隔开里面的元素:[a, b, c], [a] 3.Using a list comprehension:[x for x in iterable] 4.Using th ...
分类:
编程语言 时间:
2017-06-21 13:56:01
阅读次数:
196
Finding Palindromes http://poj.org/problem?id=3376 Time Limit: 10000MS Memory Limit: 262144K Case Time Limit: 2000MS Description A word is called a pa ...
分类:
其他好文 时间:
2017-06-19 20:54:31
阅读次数:
200
转自:http://blog.csdn.NET/witton/article/details/5977766 在Unreal引擎中大量使用了自定义的数据类型如:FName,FString,TArray等等,对于这些自定义的数据类型,我们无法直接查看到这些数据的值,但是我们可以编写VS中的autoex ...
分类:
其他好文 时间:
2017-06-18 15:51:14
阅读次数:
259
Given a string s and a list of strings dict, you need to add a closed pair of bold tag <b> and </b> to wrap the substrings in s that exist in dict. If ...
分类:
其他好文 时间:
2017-06-18 10:44:58
阅读次数:
406
map m1.insert( pair <string, int>("str", 10 ) );m1.insert( pair <string, int>("str1", 11 ) );m1.insert( pair <string, int>("str", 12 ) ); 不会插入键相同的值,也就 ...
分类:
其他好文 时间:
2017-06-17 18:35:15
阅读次数:
219
题目:http://community.topcoder.com/stat?c=problem_statement&pm=13117&rd=15950 看到树,又是与节点有关,通常是dp,dp[v][t] 表示在以v为root的subtree上有t个eagle时满足条件的概率。一个注意点是求二项系数 ...
分类:
其他好文 时间:
2017-06-16 19:20:40
阅读次数:
201
题目: 107. Binary Tree Level Order Traversal II Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to ...
分类:
其他好文 时间:
2017-06-16 12:05:21
阅读次数:
147
Recently, Pari and Arya did some research about NP-Hard problems and they found the minimum vertex cover problem very interesting. Suppose the graph G ...
分类:
其他好文 时间:
2017-06-15 14:18:50
阅读次数:
190
There are n cities and m two-way roads in Berland, each road connects two cities. It is known that there is no more than one road connecting each pair ...
分类:
其他好文 时间:
2017-06-13 19:51:14
阅读次数:
218
Apriori算法是一种最有影响的挖掘 0-1 布尔关联规则频繁项集的算法。这种算法利用了频繁项集性质的先验知识(因此叫做priori)。Apriori使用了自底向上的实现方式(如果集合 I 不是频繁项集,那么包含 I 的更大的集合也不可能是频繁项集),k – 1 项集用于探索 k 项集。首先,找出 ...
分类:
编程语言 时间:
2017-06-13 12:54:29
阅读次数:
170