上一页 1 ··· 51 52 53 54 55 56 57 58 59 ··· 162 下一页
摘要: Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be 阅读全文
posted @ 2017-07-04 12:35 gccbuaa 阅读(145) 评论(0) 推荐(0)
摘要: Tautology Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 9302 Accepted: 3549 Description WFF 'N PROOF is a logic game played with dice. Ea 阅读全文
posted @ 2017-07-04 11:01 gccbuaa 阅读(183) 评论(0) 推荐(0)
摘要: Android studio 图片错误 9-patch image error in AndroidERROR: 9-patch image xx .9.png malformed1) 异常:<!--?xml version="1.0" encoding="UTF-8" standalone="no 阅读全文
posted @ 2017-07-04 10:14 gccbuaa 阅读(683) 评论(0) 推荐(0)
摘要: 错误一: Error: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class wordCount.wordCount$Map not found at org.apache.hadoop.conf.Configurat 阅读全文
posted @ 2017-07-04 09:39 gccbuaa 阅读(1807) 评论(0) 推荐(0)
摘要: 通过linq查询datatable数据集合满足条件的数据集 1.首先定义查询字段的变量,比方深度 string strDepth=查询深度的值; var dataRows = from datarow in dataTable(须要查询的datatable数据集).AsEnumerable() wh 阅读全文
posted @ 2017-07-04 08:19 gccbuaa 阅读(626) 评论(0) 推荐(0)
摘要: 项目中一个算法中涉及到了组合,大概业务是:给定一个值X,从n个数中找出能组合加起来和X相等的集合。假设用通常的组合算法。数量级是2的n的阶乘。假设记录比較多的话,有效率问题。我针对我们的业务。优化写了一个算法。 大概逻辑:先给n个值从小到大排序形成一个队列。组合数从2開始依次递增,每次运行一个剔除操 阅读全文
posted @ 2017-07-03 21:32 gccbuaa 阅读(399) 评论(0) 推荐(0)
摘要: 转载请注明出处:http://blog.csdn.net/l1028386804/article/details/46952835 AsyncTask和Handler对照 1 ) AsyncTask实现的原理,和适用的优缺点 AsyncTask,是android提供的轻量级的异步类,能够直接继承As 阅读全文
posted @ 2017-07-03 20:12 gccbuaa 阅读(216) 评论(0) 推荐(0)
摘要: 题目 You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a co 阅读全文
posted @ 2017-07-03 19:05 gccbuaa 阅读(280) 评论(0) 推荐(0)
摘要: 链接:http://acm.hdu.edu.cn/showproblem.php?pid=1054 题意:一个熊孩子玩策略游戏,他须要用最少的士兵守卫最多的道路。假设这个顶点有士兵。则和这个点相连的全部边都会被保护,问保护全部的道路最少须要的士兵数量。 思路:这实际上就是一个最小点覆盖,二分图的最小 阅读全文
posted @ 2017-07-03 18:09 gccbuaa 阅读(149) 评论(0) 推荐(0)
摘要: Building Roads Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 9360 Accepted: 2690 Description Farmer John had just acquired several new fa 阅读全文
posted @ 2017-07-03 17:23 gccbuaa 阅读(299) 评论(0) 推荐(0)
上一页 1 ··· 51 52 53 54 55 56 57 58 59 ··· 162 下一页